##// END OF EJS Templates
git-svn-id: http://redmine.rubyforge.org/svn/trunk@31 e93f8b46-1217-0410-a6f0-8f06a7374b81
Jean-Philippe Lang -
r29:4a1cfb3df94b
parent child
Show More
@@ -0,0 +1,1
1 default directory for uploaded files No newline at end of file
@@ -54,6 +54,8 module CustomFieldsHelper
54 # Return a string used to display a custom value
54 # Return a string used to display a custom value
55 def show_value(custom_value)
55 def show_value(custom_value)
56 case custom_value.custom_field.field_format
56 case custom_value.custom_field.field_format
57 when "date"
58 format_date(custom_value.value.to_date)
57 when "bool"
59 when "bool"
58 l_YesNo(custom_value.value == "1")
60 l_YesNo(custom_value.value == "1")
59 else
61 else
@@ -88,7 +88,11 class User < ActiveRecord::Base
88 def active?
88 def active?
89 self.status == STATUS_ACTIVE
89 self.status == STATUS_ACTIVE
90 end
90 end
91
91
92 def registered?
93 self.status == STATUS_REGISTERED
94 end
95
92 def locked?
96 def locked?
93 self.status == STATUS_LOCKED
97 self.status == STATUS_LOCKED
94 end
98 end
@@ -13,7 +13,7
13 <%= javascript_include_tag 'calendar/calendar' %>
13 <%= javascript_include_tag 'calendar/calendar' %>
14 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
14 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
15 <%= javascript_include_tag 'calendar/calendar-setup' %>
15 <%= javascript_include_tag 'calendar/calendar-setup' %>
16 <%= stylesheet_link_tag 'calendar/calendar-blue' %>
16 <%= stylesheet_link_tag 'calendar' %>
17 <script type='text/javascript'>
17 <script type='text/javascript'>
18 var menu_contenu=' \
18 var menu_contenu=' \
19 <div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)"> \
19 <div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)"> \
@@ -3,11 +3,11
3 <div class="splitcontentleft">
3 <div class="splitcontentleft">
4 <%= simple_format(auto_link(@project.description)) %>
4 <%= simple_format(auto_link(@project.description)) %>
5 <ul>
5 <ul>
6 <li><%=l(:field_homepage)%>: <%= link_to @project.homepage, @project.homepage %></li>
6 <% unless @project.homepage.empty? %><li><%=l(:field_homepage)%>: <%= link_to @project.homepage, @project.homepage %></li><% end %>
7 <li><%=l(:field_created_on)%>: <%= format_date(@project.created_on) %></li>
7 <li><%=l(:field_created_on)%>: <%= format_date(@project.created_on) %></li>
8 <% for custom_value in @custom_values %>
8 <% for custom_value in @custom_values %>
9 <% if !custom_value.value.empty? %>
9 <% if !custom_value.value.empty? %>
10 <li><%= custom_value.custom_field.name%>: <%= custom_value.value%></li>
10 <li><%= custom_value.custom_field.name%>: <%= show_value(custom_value) %></li>
11 <% end %>
11 <% end %>
12 <% end %>
12 <% end %>
13 </ul>
13 </ul>
@@ -14,7 +14,7
14 </tr>
14 </tr>
15
15
16 <% for row in rows %>
16 <% for row in rows %>
17 <tr style="background-color:#CEE1ED">
17 <tr class="<%= cycle("odd", "even") %>">
18 <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
18 <td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
19 :set_filter => 1,
19 :set_filter => 1,
20 "#{field_name}" => row.id %></td>
20 "#{field_name}" => row.id %></td>
@@ -43,4 +43,5
43 <% end %>
43 <% end %>
44 </tr>
44 </tr>
45 </table>
45 </table>
46 <% end %> No newline at end of file
46 <% end
47 reset_cycle %> No newline at end of file
@@ -28,18 +28,19
28 <%= form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) %>
28 <%= form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) %>
29 <table>
29 <table>
30 <tr>
30 <tr>
31 <td align="center"><strong><%=l(:label_current_status)%></strong></td>
31 <td align="center" colspan="2"><strong><%=l(:label_current_status)%></strong></td>
32 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
32 <td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
33 </tr>
33 </tr>
34 <tr>
34 <tr>
35 <td></td>
35 <td colspan="2"></td>
36 <% for new_status in @statuses %>
36 <% for new_status in @statuses %>
37 <td width="60" align="center"><%= new_status.name %></td>
37 <td width="80" align="center"><%= new_status.name %></td>
38 <% end %>
38 <% end %>
39 </tr>
39 </tr>
40
40
41 <% for old_status in @statuses %>
41 <% for old_status in @statuses %>
42 <tr>
42 <tr>
43 <td width="20" align="center"><div style="background-color:#<%= old_status.html_color %>">&nbsp</div></td>
43 <td><%= old_status.name %></td>
44 <td><%= old_status.name %></td>
44
45
45 <% for new_status in @statuses %>
46 <% for new_status in @statuses %>
@@ -19,7 +19,7
19 <td><%= user.lastname %></td>
19 <td><%= user.lastname %></td>
20 <td><%= user.mail %></td>
20 <td><%= user.mail %></td>
21 <td align="center"><%= image_tag 'true' if user.admin? %></td>
21 <td align="center"><%= image_tag 'true' if user.admin? %></td>
22 <td align="center"><%= image_tag 'locked' if user.locked? %></td>
22 <td align="center"><%= image_tag 'locked' if user.locked? %><%= image_tag 'user_new' if user.registered? %></td>
23 <td align="center"><%= format_time(user.created_on) %></td>
23 <td align="center"><%= format_time(user.created_on) %></td>
24 <td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
24 <td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
25 <td align="center">
25 <td align="center">
@@ -7,7 +7,7 div.calendar { position: relative; }
7 font-size: 11px;
7 font-size: 11px;
8 color: #000;
8 color: #000;
9 cursor: default;
9 cursor: default;
10 background: #eef;
10 background: #fafbfc;
11 font-family: tahoma,verdana,sans-serif;
11 font-family: tahoma,verdana,sans-serif;
12 }
12 }
13
13
@@ -19,7 +19,7 div.calendar { position: relative; }
19 }
19 }
20
20
21 .calendar .nav {
21 .calendar .nav {
22 background: #778 url(menuarrow.gif) no-repeat 100% 100%;
22 background: #467aa7 url(menuarrow.gif) no-repeat 100% 100%;
23 }
23 }
24
24
25 .calendar thead .title { /* This holds the current "month, year" */
25 .calendar thead .title { /* This holds the current "month, year" */
@@ -31,7 +31,7 div.calendar { position: relative; }
31 }
31 }
32
32
33 .calendar thead .headrow { /* Row <TR> containing navigation buttons */
33 .calendar thead .headrow { /* Row <TR> containing navigation buttons */
34 background: #778;
34 background: #467aa7;
35 color: #fff;
35 color: #fff;
36 }
36 }
37
37
@@ -51,9 +51,8 div.calendar { position: relative; }
51 }
51 }
52
52
53 .calendar thead .hilite { /* How do the buttons in header appear when hover */
53 .calendar thead .hilite { /* How do the buttons in header appear when hover */
54 background-color: #aaf;
54 background-color: #80b0da;
55 color: #000;
55 color: #000;
56 border: 1px solid #04f;
57 padding: 1px;
56 padding: 1px;
58 }
57 }
59
58
@@ -89,11 +88,11 div.calendar { position: relative; }
89 }
88 }
90
89
91 .calendar tbody .rowhilite td.wn {
90 .calendar tbody .rowhilite td.wn {
92 background: #eef;
91 background: #80b0da;
93 }
92 }
94
93
95 .calendar tbody td.hilite { /* Hovered cells <TD> */
94 .calendar tbody td.hilite { /* Hovered cells <TD> */
96 background: #def;
95 background: #80b0da;
97 padding: 1px 3px 1px 1px;
96 padding: 1px 3px 1px 1px;
98 border: 1px solid #bbb;
97 border: 1px solid #bbb;
99 }
98 }
General Comments 0
You need to be logged in to leave comments. Login now