summaryrefslogtreecommitdiffstats
path: root/app/views/issues/show.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-16 12:15:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2006-12-16 12:15:31 +0000
commit236c735d08c097cfe1a7e5f5c52a9dd6711250aa (patch)
treed819b1a914651602c965cc32f0ce04dd90fdd052 /app/views/issues/show.rhtml
parente5562afcd30998c0ed3d5b40c0a9c1cb3367518d (diff)
downloadredmine-236c735d08c097cfe1a7e5f5c52a9dd6711250aa.tar.gz
redmine-236c735d08c097cfe1a7e5f5c52a9dd6711250aa.zip
contextual links redesign
git-svn-id: http://redmine.rubyforge.org/svn/trunk@93 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues/show.rhtml')
-rw-r--r--app/views/issues/show.rhtml41
1 files changed, 10 insertions, 31 deletions
diff --git a/app/views/issues/show.rhtml b/app/views/issues/show.rhtml
index 81e4b9668..f01612aec 100644
--- a/app/views/issues/show.rhtml
+++ b/app/views/issues/show.rhtml
@@ -1,10 +1,8 @@
-<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%= @issue.subject %></h2>
-<div class="topright">
-<small>
-<%= l(:label_export_to) %>&nbsp;
-<%= link_to 'PDF', :action => 'export_pdf', :id => @issue %>
-</small>
+<div class="contextual">
+<%= l(:label_export_to) %><%= link_to 'PDF', {:action => 'export_pdf', :id => @issue}, :class => 'pic picPdf' %>
</div>
+
+<h2><%= @issue.tracker.name %> #<%= @issue.id %> - <%= @issue.subject %></h2>
<div class="box">
<table width="100%">
@@ -46,13 +44,12 @@ end %>
<b><%=l(:field_description)%> :</b><br /><br />
<%= textilizable @issue.description %>
<br />
-<div style="float:left;">
-<% if authorize_for('issues', 'edit') %>
- <%= start_form_tag ({:controller => 'issues', :action => 'edit', :id => @issue}, :method => "get" ) %>
- <%= submit_tag l(:button_edit) %>
- <%= end_form_tag %>
- &nbsp;&nbsp;
-<% end %>
+
+<div class="contextual">
+<%= link_to_if_authorized l(:button_edit), {:controller => 'issues', :action => 'edit', :id => @issue}, :class => 'pic picEdit' %>
+<%= link_to_if_authorized l(:button_move), {:controller => 'projects', :action => 'move_issues', :id => @project, "issue_ids[]" => @issue.id }, :class => 'pic picMove' %>
+<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
+</div>
<% if authorize_for('issues', 'change_status') and @status_options and !@status_options.empty? %>
<%= start_form_tag ({:controller => 'issues', :action => 'change_status', :id => @issue}) %>
@@ -62,26 +59,8 @@ end %>
</select>
<%= submit_tag l(:button_change) %>
<%= end_form_tag %>
- &nbsp;&nbsp;
<% end %>
-<% if authorize_for('projects', 'move_issues') %>
- <%= start_form_tag ({:controller => 'projects', :action => 'move_issues', :id => @project} ) %>
- <%= hidden_field_tag "issue_ids[]", @issue.id %>
- <%= submit_tag l(:button_move) %>
- <%= end_form_tag %>
- &nbsp;&nbsp;
-<% end %>
-</div>
-<div style="float:right;">
-<% if authorize_for('issues', 'destroy') %>
- <%= start_form_tag ({:controller => 'issues', :action => 'destroy', :id => @issue} ) %>
- <%= submit_tag l(:button_delete) %>
- <%= end_form_tag %>
- &nbsp;&nbsp;
-<% end %>
-</div>
-<div class="clear"></div>
</div>
<div id="history" class="box">