Project

General

Profile

Patch #31224 » my_page_time_entry_queries_icons_SVN.diff

Jérôme BATAILLE, 2019-05-03 01:08

View differences:

app/views/my/blocks/_calendar.html.erb
<h3><%= l(:label_calendar) %></h3>
<h3><span class="icon icon-calendar"><%= l(:label_calendar) %></span></h3>
<%= render :partial => 'common/calendar', :locals => {:calendar => calendar } %>
app/views/my/blocks/_documents.html.erb
<h3><%=l(:label_document_plural)%></h3>
<h3><span class="icon icon-document"><%=l(:label_document_plural)%></span></h3>
<%= render :partial => 'documents/document', :collection => documents %>
app/views/my/blocks/_issues.erb
<h3>
<%= "#{query.project} |" if query.project %>
<%= link_to query.name, _project_issues_path(query.project, query.as_params) %>
<span class="icon icon-issue"><%= link_to query.name, _project_issues_path(query.project, query.as_params) %></span>
(<%= query.issue_count %>)
</h3>
app/views/my/blocks/_news.html.erb
<h3><%=l(:label_news_latest)%></h3>
<h3><span class="icon icon-news"><%=l(:label_news_latest)%></span></h3>
<%= render :partial => 'news/news', :collection => news %>
app/views/my/blocks/_timelog.html.erb
</div>
<h3>
<%= link_to l(:label_spent_time), time_entries_path(:user_id => 'me') %>
(<%= l(:label_last_n_days, days) %>: <%= l_hours_short entries.sum(&:hours) %>)
<span class="icon icon-time"><%= link_to l(:label_spent_time), time_entries_path(:user_id => 'me') %>
(<%= l(:label_last_n_days, days) %>: <%= l_hours_short entries.sum(&:hours) %>)</span>
<%= link_to l(:button_log_time), new_time_entry_path, :class => "icon-only icon-add", :title => l(:button_log_time) if User.current.allowed_to?(:log_time, nil, :global => true) %>
</h3>
app/views/my/blocks/_timelogs.erb
<h3>
<%= "#{query.project} |" if query.project %>
<%= link_to query.name, _time_entries_path(query.project, nil, query.as_params) %>
<span class="icon icon-time"><%= link_to query.name, _time_entries_path(query.project, nil, query.as_params) %></span>
(<%= scope.count %>)
</h3>
(4-4/5)