Redmine 4.1.1
This commit is contained in:
parent
33e7b881a5
commit
3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions
|
@ -1,3 +1,5 @@
|
|||
<%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%>
|
||||
<%= hidden_field_tag 'back_url', url_for(:params => request.query_parameters), :id => nil %>
|
||||
<table class="cal">
|
||||
<thead>
|
||||
<tr><th scope="col" title="<%= l(:label_week) %>" class="week-number"></th><% 7.times do |i| %><th scope="col"><%= day_name( (calendar.first_wday+i)%7 ) %></th><% end %></tr>
|
||||
|
@ -7,14 +9,15 @@
|
|||
<% day = calendar.startdt
|
||||
while day <= calendar.enddt %>
|
||||
<%= ("<td class='week-number' title='#{ l(:label_week) }'>#{(day+(11-day.cwday)%7).cweek}</td>".html_safe) if day.cwday == calendar.first_wday %>
|
||||
<td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if User.current.today == day %>">
|
||||
<td class="<%= calendar_day_css_classes(calendar, day) %>">
|
||||
<p class="day-num"><%= day.day %></p>
|
||||
<% calendar.events_on(day).each do |i| %>
|
||||
<% if i.is_a? Issue %>
|
||||
<div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip">
|
||||
<div class="<%= i.css_classes %> <%= 'starting' if day == i.start_date %> <%= 'ending' if day == i.due_date %> tooltip hascontextmenu">
|
||||
<%= "#{i.project} -" unless @project && @project == i.project %>
|
||||
<%= link_to_issue i, :truncate => 30 %>
|
||||
<span class="tip"><%= render_issue_tooltip i %></span>
|
||||
<%= check_box_tag 'ids[]', i.id, false, :style => 'display:none;', :id => nil %>
|
||||
</div>
|
||||
<% else %>
|
||||
<span class="icon icon-package">
|
||||
|
@ -30,3 +33,5 @@ end %>
|
|||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<% end %>
|
||||
<%= context_menu %>
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th colspan="4" class="filename">
|
||||
<% if table_file.previous_file_name %>
|
||||
<span class="previous-filename"><%= table_file.previous_file_name %> →</span>
|
||||
<% end %>
|
||||
<%= table_file.file_name %>
|
||||
</th>
|
||||
</tr>
|
||||
|
@ -40,6 +43,9 @@
|
|||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" class="filename">
|
||||
<% if table_file.previous_file_name %>
|
||||
<span class="previous-filename"><%= table_file.previous_file_name %> →</span>
|
||||
<% end %>
|
||||
<%= table_file.file_name %>
|
||||
</th>
|
||||
</tr>
|
||||
|
|
3
app/views/common/_markup.html.erb
Normal file
3
app/views/common/_markup.html.erb
Normal file
|
@ -0,0 +1,3 @@
|
|||
<div class="filecontent wiki">
|
||||
<%= Redmine::WikiFormatting.to_html(markup_text_formatting, Redmine::CodesetUtil.to_utf8_by_setting(markup_text)).html_safe %>
|
||||
</div>
|
8
app/views/common/_no_preview.html.erb
Normal file
8
app/views/common/_no_preview.html.erb
Normal file
|
@ -0,0 +1,8 @@
|
|||
<p class="nodata">
|
||||
<% if download_link %>
|
||||
<%= t(:label_no_preview_alternative_html, link: download_link) %>
|
||||
<% else %>
|
||||
<%= l(:label_no_preview) %>
|
||||
<% end %>
|
||||
</p>
|
||||
|
|
@ -1,7 +1,23 @@
|
|||
<p class="nodata">
|
||||
<% if defined? download_link %>
|
||||
<%= t(:label_no_preview_alternative_html, link: download_link) %>
|
||||
<% download_link = nil unless defined? download_link %>
|
||||
<% kind = nil unless defined? kind %>
|
||||
<% path = nil unless defined? path %>
|
||||
|
||||
<% if path.present? %>
|
||||
|
||||
<% if kind == 'video' %>
|
||||
<%= content_tag :video, class: 'filecontent', src: path, controls: true do %>
|
||||
<%= render partial: 'common/no_preview', locals: { download_link: download_link } %>
|
||||
<% end %>
|
||||
<% elsif kind == 'audio' %>
|
||||
<%= content_tag :audio, class: 'filecontent', src: path, controls: true do %>
|
||||
<%= render partial: 'common/no_preview', locals: { download_link: download_link } %>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<%= l(:label_no_preview) %>
|
||||
<% end %>
|
||||
</p>
|
||||
<%= render partial: 'common/no_preview', locals: { download_link: download_link } %>
|
||||
<% end %>
|
||||
|
||||
<% else %>
|
||||
|
||||
<%= render partial: 'common/no_preview', locals: { download_link: download_link } %>
|
||||
|
||||
<% end %>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
<fieldset class="preview"><legend><%= l(:label_preview) %></legend>
|
||||
<%= textilizable @text, :attachments => @attachments, :object => @previewed %>
|
||||
</fieldset>
|
||||
<% unless @text.blank? %>
|
||||
<%= textilizable @text, :attachments => @attachments, :object => @previewed %>
|
||||
<% else %>
|
||||
<p class="empty-preview"><%= l(:label_nothing_to_preview) %></p>
|
||||
<% end %>
|
|
@ -1,10 +1,14 @@
|
|||
<% default_action = false %>
|
||||
|
||||
<div class="tabs">
|
||||
<ul>
|
||||
<% tabs.each do |tab| -%>
|
||||
<% action = get_tab_action(tab) %>
|
||||
<li><%= link_to l(tab[:label]), (tab[:url] || { :tab => tab[:name] }),
|
||||
:id => "tab-#{tab[:name]}",
|
||||
:class => (tab[:name] != selected_tab ? nil : 'selected'),
|
||||
:onclick => tab[:partial] ? "showTab('#{tab[:name]}', this.href); this.blur(); return false;" : nil %></li>
|
||||
:onclick => (action.nil? ? nil : "#{ action }; return false;") %></li>
|
||||
<% default_action = action if tab[:name] == selected_tab %>
|
||||
<% end -%>
|
||||
</ul>
|
||||
<div class="tabs-buttons" style="display:none;">
|
||||
|
@ -14,8 +18,10 @@
|
|||
</div>
|
||||
|
||||
<% tabs.each do |tab| -%>
|
||||
<%= content_tag('div', render(:partial => tab[:partial], :locals => {:tab => tab} ),
|
||||
<%= content_tag('div', (render(:partial => tab[:partial], :locals => {:tab => tab}) if tab[:partial]) ,
|
||||
:id => "tab-content-#{tab[:name]}",
|
||||
:style => (tab[:name] != selected_tab ? 'display:none' : nil),
|
||||
:class => 'tab-content') if tab[:partial] %>
|
||||
:class => 'tab-content') if tab[:partial] || tab[:remote] %>
|
||||
<% end -%>
|
||||
|
||||
<%= javascript_tag default_action if default_action %>
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
<% if @message.present? %>
|
||||
<p id="errorExplanation"><%= @message %></p>
|
||||
<% end %>
|
||||
|
||||
<% if @archived_project && User.current.admin? %>
|
||||
<p><%= link_to l(:button_unarchive), unarchive_project_path(@archived_project), :method => :post, :class => 'icon icon-unlock' %></p>
|
||||
<% end %>
|
||||
|
||||
<p><a href="javascript:history.back()"><%= l(:button_back) %></a></p>
|
||||
|
||||
<% html_title @status %>
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
xml.instruct!
|
||||
xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
xml.title truncate_single_line_raw(@title, 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue