#1269 修复项目--日历信息显示超出边框的BUG
This commit is contained in:
parent
19533f3c50
commit
8b7a775419
|
@ -9,11 +9,9 @@
|
||||||
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
<%= render :partial => 'queries/filters', :locals => {:query => @query} %>
|
||||||
</div>
|
</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
|
||||||
<p style="float:right;">
|
<p style="float:right;">
|
||||||
<%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
<%= link_to_previous_month(@year, @month) %> | <%= link_to_next_month(@year, @month) %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p class="buttons">
|
<p class="buttons">
|
||||||
<%= label_tag('month', l(:label_month)) %>
|
<%= label_tag('month', l(:label_month)) %>
|
||||||
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
<%= select_month(@month, :prefix => "month", :discard_type => true) %>
|
||||||
|
@ -28,7 +26,6 @@
|
||||||
<%= error_messages_for 'query' %>
|
<%= error_messages_for 'query' %>
|
||||||
<% if @query.valid? %>
|
<% if @query.valid? %>
|
||||||
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
|
<%= render :partial => 'common/calendar', :locals => {:calendar => @calendar} %>
|
||||||
|
|
||||||
<p class="legend cal">
|
<p class="legend cal">
|
||||||
<span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
|
<span class="starting"><%= l(:text_tip_issue_begin_day) %></span>
|
||||||
<span class="ending"><%= l(:text_tip_issue_end_day) %></span>
|
<span class="ending"><%= l(:text_tip_issue_end_day) %></span>
|
||||||
|
|
|
@ -1,13 +1,19 @@
|
||||||
<table class="cal">
|
<table class="cal" style="width: 100%;table-layout: fixed;">
|
||||||
<thead>
|
<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>
|
<tr>
|
||||||
|
<th scope="col" title="<%= l(:label_week) %>" class="week-number"></th>
|
||||||
|
<% 7.times do |i| %>
|
||||||
|
<th scope="col" style='white-space: nowrap;overflow: hidden;text-overflow: ellipsis;'><%= day_name( (calendar.first_wday+i)%7 ) %></th>
|
||||||
|
<% end %>
|
||||||
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<% day = calendar.startdt
|
<% day = calendar.startdt
|
||||||
while day <= calendar.enddt %>
|
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='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 Date.today == day %>">
|
<td class="<%= day.month==calendar.month ? 'even' : 'odd' %><%= ' today' if Date.today == day %>"
|
||||||
|
style="word-break: break-all;word-wrap: break-word;">
|
||||||
<p class="day-num"><%= day.day %></p>
|
<p class="day-num"><%= day.day %></p>
|
||||||
<% calendar.events_on(day).each do |i| %>
|
<% calendar.events_on(day).each do |i| %>
|
||||||
<% if i.is_a? Issue %>
|
<% if i.is_a? Issue %>
|
||||||
|
|
Loading…
Reference in New Issue