contextual links redesign
git-svn-id: http://redmine.rubyforge.org/svn/trunk@93 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
<h2><%= l(:label_gantt) %></h2>
|
||||
<div class="topright">
|
||||
<small>
|
||||
<%= l(:label_export_to) %> <%= link_to 'PDF', :zoom => @zoom, :year => @year_from, :month => @month_from, :months => @months, :output => 'pdf' %>
|
||||
</small>
|
||||
<div class="contextual">
|
||||
<%= l(:label_export_to) %>
|
||||
<%= link_to 'PDF', {:zoom => @zoom, :year => @year_from, :month => @month_from, :months => @months, :output => 'pdf'}, :class => 'pic picPdf' %>
|
||||
</div>
|
||||
|
||||
<h2><%= l(:label_gantt) %></h2>
|
||||
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td align="left">
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:label_document_new), {:controller => 'projects', :action => 'add_document', :id => @project}, :class => 'pic picAdd' %>
|
||||
</div>
|
||||
|
||||
<h2><%=l(:label_document_plural)%></h2>
|
||||
|
||||
<% if @documents.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
||||
@@ -16,8 +20,4 @@
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
<%= link_to_if_authorized '» ' + l(:label_document_new), :controller => 'projects', :action => 'add_document', :id => @project %>
|
||||
</p>
|
||||
<% end %>
|
||||
@@ -1,3 +1,7 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:label_attachment_new), {:controller => 'projects', :action => 'add_file', :id => @project}, :class => 'pic picAdd' %>
|
||||
</div>
|
||||
|
||||
<h2><%=l(:label_attachment_plural)%></h2>
|
||||
|
||||
<% delete_allowed = authorize_for('versions', 'destroy_file') %>
|
||||
@@ -26,9 +30,9 @@
|
||||
<td align="center"><small><%= file.digest %></small></td>
|
||||
<% if delete_allowed %>
|
||||
<td align="center">
|
||||
<%= start_form_tag :controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file %>
|
||||
<%= submit_tag l(:button_delete), :class => "button-small" %>
|
||||
<%= end_form_tag %>
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy_file', :id => version, :attachment_id => file}, :confirm => l(:text_are_you_sure), :post => true, :class => 'pic picDelete' %>
|
||||
</div>
|
||||
</td>
|
||||
<% end %>
|
||||
</tr>
|
||||
@@ -36,11 +40,4 @@
|
||||
reset_cycle %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
<p>
|
||||
<%= link_to_if_authorized '» ' + l(:label_attachment_new), :controller => 'projects', :action => 'add_file', :id => @project %>
|
||||
</p>
|
||||
|
||||
|
||||
</table>
|
||||
@@ -1,12 +1,11 @@
|
||||
<h2><%=l(:label_issue_plural)%></h2>
|
||||
<div class="topright">
|
||||
<small>
|
||||
<%= l(:label_export_to) %>
|
||||
<%= link_to 'CSV', :action => 'export_issues_csv', :id => @project %>,
|
||||
<%= link_to 'PDF', :action => 'export_issues_pdf', :id => @project %>
|
||||
</small>
|
||||
<div class="contextual">
|
||||
<%= l(:label_export_to) %>
|
||||
<%= link_to 'CSV', {:action => 'export_issues_csv', :id => @project}, :class => 'pic picCsv' %>,
|
||||
<%= link_to 'PDF', {:action => 'export_issues_pdf', :id => @project}, :class => 'pic picPdf' %>
|
||||
</div>
|
||||
|
||||
<h2><%=l(:label_issue_plural)%></h2>
|
||||
|
||||
<%= start_form_tag :action => 'list_issues' %>
|
||||
<table cellpadding=2>
|
||||
<tr>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:label_news_new), {:controller => 'projects', :action => 'add_news', :id => @project}, :class => 'pic picAdd' %>
|
||||
</div>
|
||||
|
||||
<h2><%=l(:label_news_plural)%></h2>
|
||||
|
||||
<% if @news.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
||||
@@ -14,6 +18,3 @@
|
||||
|
||||
|
||||
<%= pagination_links_full @news_pages %>
|
||||
<p>
|
||||
<%= link_to_if_authorized '» ' + l(:label_news_new), :controller => 'projects', :action => 'add_news', :id => @project %>
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user