2015-01-15 18:48:19 +08:00
|
|
|
|
2015-01-17 14:19:54 +08:00
|
|
|
<%= render :partial => 'issue', :formats => [:text], :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
2015-04-27 21:54:49 +08:00
|
|
|
<% [:label_user_mail_option_all, :label_user_mail_option_day, :label_user_mail_option_none].each do |mail_option| %>
|
|
|
|
<% if Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten][@user.mail_notification] == mail_option %>
|
|
|
|
<label style="margin-top:20px;color:gray; margin-left:10px;"><%= l(mail_option) %></label>
|
|
|
|
<% else %>
|
|
|
|
<%= link_to l(mail_option), my_change_mail_notification_url(token: @token.value,mail_notification: Hash[*User::MAIL_NOTIFICATION_OPTIONS.flatten].invert[mail_option]), :style => "margin-top:20px;color:#2775d2; margin-left:10px;" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|