##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r11547:7bd4ea835ea6
r15119:53710d80fc88
Show More
index.html.erb
40 lines | 1.6 KiB | text/plain | TextLexer
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
Jean-Philippe Lang
Resourcified documents....
r7890 <%= link_to l(:label_document_new), new_project_document_path(@project), :class => 'icon icon-add',
Jean-Philippe Lang
Split "Manage documents" permission into create, edit and delete permissions (#12401)....
r10976 :onclick => 'showAndScrollTo("add-document", "document_title"); return false;' if User.current.allowed_to?(:add_documents, @project) %>
Jean-Philippe Lang
New document form can be accessed from the document list with no additional request....
r838 </div>
<div id="add-document" style="display:none;">
<h2><%=l(:label_document_new)%></h2>
Jean-Philippe Lang
Merged rails-3.2 branch....
r9346 <%= labelled_form_for @document, :url => project_documents_path(@project), :html => {:multipart => true} do |f| %>
Jean-Philippe Lang
Resourcified documents....
r7890 <%= render :partial => 'form', :locals => {:f => f} %>
<p>
Toshi MARUYAMA
replace tabs to spaces at app/views/documents/index.html.erb...
r11399 <%= submit_tag l(:button_create) %>
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <%= link_to l(:button_cancel), "#", :onclick => '$("#add-document").hide(); return false;' %>
Jean-Philippe Lang
Resourcified documents....
r7890 </p>
Jean-Philippe Lang
New document form can be accessed from the document list with no additional request....
r838 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
<h2><%=l(:label_document_plural)%></h2>
Jean-Philippe Lang
Added radio buttons on the documents list to sort documents by category, date, title or author....
r866 <% if @grouped.empty? %><p class="nodata"><%= l(:label_no_data) %></p><% end %>
<% @grouped.keys.sort.each do |group| %>
<h3><%= group %></h3>
<%= render :partial => 'documents/document', :collection => @grouped[group] %>
Jean-Philippe Lang
Application layout refactored....
r736 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330
Jean-Philippe Lang
Added radio buttons on the documents list to sort documents by category, date, title or author....
r866 <% content_for :sidebar do %>
Jean-Philippe Lang
Changes the style of the links for sorting documents....
r8544 <h3><%= l(:label_sort_by, '') %></h3>
Toshi MARUYAMA
use li tags for issue links in documents index (#13242)...
r11547 <ul>
<li><%= link_to(l(:field_category), {:sort_by => 'category'},
:class => (@sort_by == 'category' ? 'selected' :nil)) %></li>
<li><%= link_to(l(:label_date), {:sort_by => 'date'},
:class => (@sort_by == 'date' ? 'selected' :nil)) %></li>
<li><%= link_to(l(:field_title), {:sort_by => 'title'},
:class => (@sort_by == 'title' ? 'selected' :nil)) %></li>
<li><%= link_to(l(:field_author), {:sort_by => 'author'},
:class => (@sort_by == 'author' ? 'selected' :nil)) %></li>
</ul>
Jean-Philippe Lang
Added radio buttons on the documents list to sort documents by category, date, title or author....
r866 <% end %>
Jean-Philippe Lang
More detailed html title on several views....
r951
Jean-Philippe Lang
Slight improvements to the browser views....
r1019 <% html_title(l(:label_document_plural)) -%>