diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-02 14:34:13 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-09-02 14:34:13 +0000 |
commit | b1cafef07a1b29b60af41d071f785c781db965bc (patch) | |
tree | fbe9055798fff693cad2f74136f0a52613e963aa | |
parent | 70da1c7771ba83553f80483e8c9703ecb1ab0438 (diff) | |
download | redmine-b1cafef07a1b29b60af41d071f785c781db965bc.tar.gz redmine-b1cafef07a1b29b60af41d071f785c781db965bc.zip |
Buttons (edit, watch...) on issues/show are now located in the upper-right corner.
Pdf export link is at the bottom of the screen.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@697 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/issues/show.rhtml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml index 70b19d1fc..3df53e288 100644 --- a/app/views/issues/show.rhtml +++ b/app/views/issues/show.rhtml @@ -1,5 +1,9 @@ <div class="contextual"> -<%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'icon icon-pdf' %> +<%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %> +<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> +<%= watcher_tag(@issue, User.current) %> +<%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %> +<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> </div> <h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%=h @issue.subject %></h2> @@ -53,14 +57,8 @@ end %> <b><%=l(:field_description)%> :</b><br /><br /> <%= textilizable @issue.description, :attachments => @issue.attachments %> -<br /> <div class="contextual"> -<%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'icon icon-edit' %> -<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time' %> -<%= watcher_tag(@issue, User.current) %> -<%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'icon icon-move' %> -<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %> </div> <% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %> @@ -72,7 +70,6 @@ end %> <%= submit_tag l(:button_change) %> <% end %> <% end %> - </div> <% if authorize_for('issue_relations', 'new') || @issue.relations.any? %> @@ -107,3 +104,8 @@ end %> <% end %> </div> <% end %> + +<div class="contextual"> +<%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'icon icon-pdf' %> +</div> + |