Skip to content

Commit

Permalink
[FIX] localize suspended_until only if present
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaai committed Apr 8, 2014
1 parent c3f377c commit 157b939
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/views/manage/users/_access_details.html.haml
Expand Up @@ -16,7 +16,8 @@
.col1of2
%strong.font-size-m= _("Suspended until")
.col1of2.text-align-right
%input{type: "text", name: "access_right[suspended_until]", value: l(@access_right.try(:suspended_until)), :"data-suspended-until-input" => true, autocomplete: :off}
- suspended_until = @access_right.try :suspended_until
%input{type: "text", name: "access_right[suspended_until]", value: ( l suspended_until if suspended_until ), :"data-suspended-until-input" => true, autocomplete: :off}
#suspended-reason.row.padding-inset-s.emboss.margin-bottom-xxs{class: ("hidden" unless @access_right.try(:suspended_until))}
.col1of2
Expand Down

0 comments on commit 157b939

Please sign in to comment.