diff --git a/lib/issues_vote_hook.rb b/lib/issues_vote_hook.rb index ac06212..db76311 100644 --- a/lib/issues_vote_hook.rb +++ b/lib/issues_vote_hook.rb @@ -1,10 +1,10 @@ # Provides a link to the issue age graph on the issue index page class IssuesVoteHook < Redmine::Hook::ViewListener render_on :view_issues_show_details_bottom, :inline => <<-END - +
<% if authorize_for('issues', 'view_votes') || authorize_for('issues', 'view_voter') || (authorize_for('issues', 'vote') && !@issue.voted_by_user?) || authorize_for('issues', 'multiple_vote') %> - <%= l :label_votes %>: + <%= l :label_votes %>:
<% end %> <% if authorize_for('issues', 'view_votes') %> @@ -18,6 +18,6 @@ class IssuesVoteHook < Redmine::Hook::ViewListener <%= link_to("", { :controller => 'vote', :action => 'down', :id => @issue }, :class => 'icon icon-vote-down', :method => 'post') %> <% end %> - +
END end