Feature #1157 » new_planning_breadcumbs-r2088.diff
| app/helpers/issues_helper.rb (working copy) | ||
|---|---|---|
| 33 | 33 |
"<strong>#{@cached_label_priority}</strong>: #{issue.priority.name}"
|
| 34 | 34 |
end |
| 35 | 35 |
|
| 36 |
def render_planning_breadcrumb |
|
| 37 |
links = [] |
|
| 38 |
links << link_to(l(:label_project_all), {:project_id => nil})
|
|
| 39 |
links << link_to(h(@project), {:project_id => @project}) if @project
|
|
| 40 |
breadcrumb links |
|
| 41 |
end |
|
| 42 |
|
|
| 36 | 43 |
def sidebar_queries |
| 37 | 44 |
unless @sidebar_queries |
| 38 | 45 |
# User can see public queries and his own queries |
| app/views/issues/calendar.rhtml (working copy) | ||
|---|---|---|
| 1 | 1 |
<% form_tag({}, :id => 'query_form') do %>
|
| 2 | 2 |
<% if @query.new_record? %> |
| 3 | 3 |
<h2><%= l(:label_calendar) %></h2> |
| 4 |
<%= render_planning_breadcrumb %> |
|
| 4 | 5 |
<fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend> |
| 5 | 6 |
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
| 6 | 7 |
</fieldset> |
| app/views/issues/gantt.rhtml (working copy) | ||
|---|---|---|
| 1 | 1 |
<% form_tag(params.merge(:month => nil, :year => nil, :months => nil), :id => 'query_form') do %> |
| 2 | 2 |
<% if @query.new_record? %> |
| 3 | 3 |
<h2><%=l(:label_gantt)%></h2> |
| 4 |
<%= render_planning_breadcrumb %> |
|
| 4 | 5 |
<fieldset id="filters"><legend><%= l(:label_filter_plural) %></legend> |
| 5 | 6 |
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
| 6 | 7 |
</fieldset> |
| app/views/projects/index.rhtml (working copy) | ||
|---|---|---|
| 1 | 1 |
<div class="contextual"> |
| 2 | 2 |
<%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'add'}, :class => 'icon icon-add') + ' |' if User.current.admin? %>
|
| 3 |
<%= link_to l(:label_issue_view_all), { :controller => 'issues' } %> |
|
|
| 4 |
<%= link_to l(:label_overall_activity), { :controller => 'projects', :action => 'activity' }%>
|
|
| 3 |
<%= link_to l(:label_global_issues), { :controller => 'issues' } %> |
|
|
| 4 |
<%= link_to l(:label_global_timelog), { :controller => 'timelog', :action => 'details' } %> |
|
|
| 5 |
<%= link_to l(:label_global_activity), { :controller => 'projects', :action => 'activity' }%>
|
|
| 5 | 6 |
</div> |
| 6 | 7 | |
| 7 | 8 |
<h2><%=l(:label_project_plural)%></h2> |
| lang/en.yml (working copy) | ||
|---|---|---|
| 580 | 580 |
label_generate_key: Generate a key |
| 581 | 581 |
label_issue_watchers: Watchers |
| 582 | 582 |
label_example: Example |
| 583 |
label_global_issues: Global issues |
|
| 584 |
label_global_timelog: Global timelog |
|
| 585 |
label_global_activity: Global activity |
|
| 583 | 586 | |
| 584 | 587 |
button_login: Login |
| 585 | 588 |
button_submit: Submit |