##// END OF EJS Templates
Added cache for application settings (Setting model)....
Added cache for application settings (Setting model). Once the values are cached, only one database query is done at each user request (to check if the cache is still valid). git-svn-id: http://redmine.rubyforge.org/svn/trunk@685 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r574:87bad767c686
r674:6bdc13b33d8d
Show More
settings.rhtml
83 lines | 3.9 KiB | text/html+ruby | RhtmlLexer
Jean-Philippe Lang
Localization plugin removed (replaced with GLoc)...
r12 <h2><%=l(:label_settings)%></h2>
Jean-Philippe Lang
0.3 unstable...
r10
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 <div class="tabs">
<ul>
<li><%= link_to l(:label_information_plural), {}, :id=> "tab-info", :onclick => "showTab('info'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_member_plural), {}, :id=> "tab-members", :onclick => "showTab('members'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_version_plural), {}, :id=> "tab-versions", :onclick => "showTab('versions'); this.blur(); return false;" %></li>
<li><%= link_to l(:label_issue_category_plural), {}, :id=> "tab-categories", :onclick => "showTab('categories'); this.blur(); return false;" %></li>
Jean-Philippe Lang
Per project forums added....
r526 <li><%= link_to l(:label_board_plural), {}, :id=> "tab-boards", :onclick => "showTab('boards'); this.blur(); return false;" %></li>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 </ul>
</div>
<div id="tab-content-info" class="tab-content">
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% if authorize_for('projects', 'edit') %>
Jean-Philippe Lang
* new report: project activity...
r42 <% labelled_tabular_form_for :project, @project, :url => { :action => "edit", :id => @project } do |f| %>
<%= render :partial => 'form', :locals => { :f => f } %>
<%= submit_tag l(:button_save) %>
<% end %>
<% end %>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 </div>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div id="tab-content-members" class="tab-content" style="display:none;">
Jean-Philippe Lang
Members management in project settings is now AJAXified...
r505 <%= render :partial => 'members' %>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 </div>
<div id="tab-content-versions" class="tab-content" style="display:none;">
Jean-Philippe Lang
project settings tabs redesign...
r179 <table class="list">
Jean-Philippe Lang
A wiki page can now be attached to each version....
r561 <thead>
<th><%= l(:label_version) %></th>
<th><%= l(:field_effective_date) %></th>
<th><%= l(:field_description) %></th>
<th><%= l(:label_wiki_page) unless @project.wiki.nil? %></th>
<th style="width:15%"></th>
<th style="width:15%"></th>
</thead>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tbody>
Jean-Philippe Lang
Versions can now be created with no date....
r533 <% for version in @project.versions.sort %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr class="<%= cycle 'odd', 'even' %>">
<td><%=h version.name %></td>
<td align="center"><%= format_date(version.effective_date) %></td>
Jean-Philippe Lang
project settings tabs redesign...
r179 <td><%=h version.description %></td>
Jean-Philippe Lang
A wiki page can now be attached to each version....
r561 <td><%= link_to(version.wiki_page_title, :controller => 'wiki', :page => Wiki.titleize(version.wiki_page_title)) unless version.wiki_page_title.blank? || @project.wiki.nil? %></td>
Jean-Philippe Lang
Members management in project settings is now AJAXified...
r505 <td align="center"><small><%= link_to_if_authorized l(:button_edit), { :controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %></small></td>
<td align="center"><small><%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></small></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </td>
</tr>
Jean-Philippe Lang
project settings tabs redesign...
r179 <% end; reset_cycle %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tbody>
</table>
Jean-Philippe Lang
Slight modifications on project settings views...
r506 &nbsp;
<p><%= link_to_if_authorized l(:label_version_new), :controller => 'projects', :action => 'add_version', :id => @project %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178
<div id="tab-content-categories" class="tab-content" style="display:none;">
Jean-Philippe Lang
project settings tabs redesign...
r179 <table class="list">
Jean-Philippe Lang
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user....
r574 <thead>
<th><%= l(:label_issue_category) %></th>
<th><%= l(:field_assigned_to) %></th>
<th style="width:15%"></th>
<th style="width:15%"></th>
</thead>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tbody>
Jean-Philippe Lang
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user....
r574 <% for category in @project.issue_categories %>
<% unless category.new_record? %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <tr class="<%= cycle 'odd', 'even' %>">
Jean-Philippe Lang
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user....
r574 <td><%=h(category.name) %></td>
<td><%=h(category.assigned_to.name) if category.assigned_to %></td>
<td align="center"><small><%= link_to_if_authorized l(:button_edit), { :controller => 'issue_categories', :action => 'edit', :id => category }, :class => 'icon icon-edit' %></small></td>
<td align="center"><small><%= link_to_if_authorized l(:button_delete), {:controller => 'issue_categories', :action => 'destroy', :id => category}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %></small></td>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </tr>
<% end %>
<% end %>
Jean-Philippe Lang
project settings tabs redesign...
r179 </tbody>
Jean-Philippe Lang
* new report: project activity...
r42 </table>
Jean-Philippe Lang
Slight modifications on project settings views...
r506 &nbsp;
Jean-Philippe Lang
Each category can now be associated to a user, so that new issues in that category are automatically assigned to that user....
r574 <p><%= link_to_if_authorized l(:label_issue_category_new), :controller => 'projects', :action => 'add_issue_category', :id => @project %></p>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178
Jean-Philippe Lang
Per project forums added....
r526 <div id="tab-content-boards" class="tab-content" style="display:none;">
<%= render :partial => 'boards' %>
</div>
Jean-Philippe Lang
* project settings split in 4 tabs...
r178 <%= tab = params[:tab] ? h(params[:tab]) : 'info'
javascript_tag "showTab('#{tab}');" %>