+ ">
<%= format_activity_description(e.event_description) %>
<%= link_to_user(e.event_author) if e.respond_to?(:event_author) %>
@@ -74,11 +74,19 @@
<% content_for :sidebar do %>
<% form_tag({}, :method => :get) do %>
<%= l(:label_activity) %>
-<% @activity.event_types.each do |t| %>
-<%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
-
-
-<% end %>
+
+
+<% @activity.event_types.each do |t| %>
+ -
+ <%= check_box_tag "show_#{t}", 1, @activity.scope.include?(t) %>
+
+
+<% end %>
+
+
<% if @project && @project.descendants.active.any? %>
<%= hidden_field_tag 'with_subprojects', 0 %>
diff -r c8d3ad483bea -r 234d18ea18e9 plugins/redmine_bibliography/app/views/projects/show.html.erb
--- a/plugins/redmine_bibliography/app/views/projects/show.html.erb Wed Jan 15 13:34:12 2014 +0000
+++ b/plugins/redmine_bibliography/app/views/projects/show.html.erb Wed Jan 15 13:46:51 2014 +0000
@@ -1,6 +1,6 @@
<% if User.current.allowed_to?(:add_subprojects, @project) %>
- <%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
+ <%= link_to l(:label_subproject_new), new_project_path(:parent_id => @project), :class => 'icon icon-add' %>
<% end %>
<% if User.current.allowed_to?(:close_project, @project) %>
@@ -37,7 +37,7 @@
<% unless @project.homepage.blank? %>
<%=l(:field_homepage)%>: <%= link_to h(@project.homepage), @project.homepage %><% end %>
<% if @subprojects.any? %>
<%=l(:label_subproject_plural)%>:
- <%= @subprojects.collect{|p| link_to(h(p), :action => 'show', :id => p)}.join(", ").html_safe %>
+ <%= @subprojects.collect{|p| link_to p, project_path(p)}.join(", ").html_safe %>
<% end %>
@@ -77,23 +77,21 @@
<%=l(:label_issue_tracking)%>
<% for tracker in @trackers %>
- - <%= link_to h(tracker.name), :controller => 'issues', :action => 'index', :project_id => @project,
- :set_filter => 1,
- "tracker_id" => tracker.id %>:
+
- <%= link_to h(tracker.name), project_issues_path(@project, :set_filter => 1, :tracker_id => tracker.id) %>:
<%= l(:label_x_open_issues_abbr_on_total, :count => @open_issues_by_tracker[tracker].to_i,
:total => @total_issues_by_tracker[tracker].to_i) %>
<% end %>
- <%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :project_id => @project, :set_filter => 1 %>
+ <%= link_to l(:label_issue_view_all), project_issues_path(@project, :set_filter => 1) %>
<% if User.current.allowed_to?(:view_calendar, @project, :global => true) %>
- | <%= link_to(l(:label_calendar), :controller => 'calendars', :action => 'show', :project_id => @project) %>
- <% end %>
- <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
- | <%= link_to(l(:label_gantt), :controller => 'gantts', :action => 'show', :project_id => @project) %>
- <% end %>
-
+ | <%= link_to l(:label_calendar), project_calendar_path(@project) %>
+ <% end %>
+ <% if User.current.allowed_to?(:view_gantt, @project, :global => true) %>
+ | <%= link_to l(:label_gantt), project_gantt_path(@project) %>
+ <% end %>
+
<% end %>
<%= call_hook(:view_projects_show_left, :project => @project) %>
@@ -109,7 +107,7 @@
<%=l(:label_news_latest)%>
<%= render :partial => 'news/news', :collection => @news %>
-
<%= link_to l(:label_news_view_all), :controller => 'news', :action => 'index', :project_id => @project %>
+
<%= link_to l(:label_news_view_all), project_news_index_path(@project) %>
<% end %>
diff -r c8d3ad483bea -r 234d18ea18e9 plugins/redmine_bibliography/app/views/users/show.html.erb
--- a/plugins/redmine_bibliography/app/views/users/show.html.erb Wed Jan 15 13:34:12 2014 +0000
+++ b/plugins/redmine_bibliography/app/views/users/show.html.erb Wed Jan 15 13:46:51 2014 +0000
@@ -72,7 +72,7 @@
<%= link_to l(:label_activity), :controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :from => @events_by_day.keys.first %>
-<%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %>
+<%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %>