git-svn-id: http://redmine.rubyforge.org/svn/trunk@31 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b00769f606
commit
4a1cfb3df9
|
@ -54,6 +54,8 @@ module CustomFieldsHelper
|
||||||
# Return a string used to display a custom value
|
# Return a string used to display a custom value
|
||||||
def show_value(custom_value)
|
def show_value(custom_value)
|
||||||
case custom_value.custom_field.field_format
|
case custom_value.custom_field.field_format
|
||||||
|
when "date"
|
||||||
|
format_date(custom_value.value.to_date)
|
||||||
when "bool"
|
when "bool"
|
||||||
l_YesNo(custom_value.value == "1")
|
l_YesNo(custom_value.value == "1")
|
||||||
else
|
else
|
||||||
|
|
|
@ -89,6 +89,10 @@ class User < ActiveRecord::Base
|
||||||
self.status == STATUS_ACTIVE
|
self.status == STATUS_ACTIVE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def registered?
|
||||||
|
self.status == STATUS_REGISTERED
|
||||||
|
end
|
||||||
|
|
||||||
def locked?
|
def locked?
|
||||||
self.status == STATUS_LOCKED
|
self.status == STATUS_LOCKED
|
||||||
end
|
end
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<%= javascript_include_tag 'calendar/calendar' %>
|
<%= javascript_include_tag 'calendar/calendar' %>
|
||||||
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
|
<%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
|
||||||
<%= javascript_include_tag 'calendar/calendar-setup' %>
|
<%= javascript_include_tag 'calendar/calendar-setup' %>
|
||||||
<%= stylesheet_link_tag 'calendar/calendar-blue' %>
|
<%= stylesheet_link_tag 'calendar' %>
|
||||||
<script type='text/javascript'>
|
<script type='text/javascript'>
|
||||||
var menu_contenu=' \
|
var menu_contenu=' \
|
||||||
<div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)"> \
|
<div id="menuAdmin" class="menu" onmouseover="menuMouseover(event)"> \
|
||||||
|
|
|
@ -3,11 +3,11 @@
|
||||||
<div class="splitcontentleft">
|
<div class="splitcontentleft">
|
||||||
<%= simple_format(auto_link(@project.description)) %>
|
<%= simple_format(auto_link(@project.description)) %>
|
||||||
<ul>
|
<ul>
|
||||||
<li><%=l(:field_homepage)%>: <%= link_to @project.homepage, @project.homepage %></li>
|
<% unless @project.homepage.empty? %><li><%=l(:field_homepage)%>: <%= link_to @project.homepage, @project.homepage %></li><% end %>
|
||||||
<li><%=l(:field_created_on)%>: <%= format_date(@project.created_on) %></li>
|
<li><%=l(:field_created_on)%>: <%= format_date(@project.created_on) %></li>
|
||||||
<% for custom_value in @custom_values %>
|
<% for custom_value in @custom_values %>
|
||||||
<% if !custom_value.value.empty? %>
|
<% if !custom_value.value.empty? %>
|
||||||
<li><%= custom_value.custom_field.name%>: <%= custom_value.value%></li>
|
<li><%= custom_value.custom_field.name%>: <%= show_value(custom_value) %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% for row in rows %>
|
<% for row in rows %>
|
||||||
<tr style="background-color:#CEE1ED">
|
<tr class="<%= cycle("odd", "even") %>">
|
||||||
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
|
<td><%= link_to row.name, :controller => 'projects', :action => 'list_issues', :id => @project,
|
||||||
:set_filter => 1,
|
:set_filter => 1,
|
||||||
"#{field_name}" => row.id %></td>
|
"#{field_name}" => row.id %></td>
|
||||||
|
@ -43,4 +43,5 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end
|
||||||
|
reset_cycle %>
|
|
@ -28,18 +28,19 @@
|
||||||
<%= form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) %>
|
<%= form_tag ({:action => 'workflow', :role_id => @role, :tracker_id => @tracker }, :id => 'workflow_form' ) %>
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td align="center"><strong><%=l(:label_current_status)%></strong></td>
|
<td align="center" colspan="2"><strong><%=l(:label_current_status)%></strong></td>
|
||||||
<td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
|
<td align="center" colspan="<%= @statuses.length %>"><strong><%=l(:label_new_statuses_allowed)%></strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<td colspan="2"></td>
|
||||||
<% for new_status in @statuses %>
|
<% for new_status in @statuses %>
|
||||||
<td width="60" align="center"><%= new_status.name %></td>
|
<td width="80" align="center"><%= new_status.name %></td>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<% for old_status in @statuses %>
|
<% for old_status in @statuses %>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td width="20" align="center"><div style="background-color:#<%= old_status.html_color %>"> </div></td>
|
||||||
<td><%= old_status.name %></td>
|
<td><%= old_status.name %></td>
|
||||||
|
|
||||||
<% for new_status in @statuses %>
|
<% for new_status in @statuses %>
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
<td><%= user.lastname %></td>
|
<td><%= user.lastname %></td>
|
||||||
<td><%= user.mail %></td>
|
<td><%= user.mail %></td>
|
||||||
<td align="center"><%= image_tag 'true' if user.admin? %></td>
|
<td align="center"><%= image_tag 'true' if user.admin? %></td>
|
||||||
<td align="center"><%= image_tag 'locked' if user.locked? %></td>
|
<td align="center"><%= image_tag 'locked' if user.locked? %><%= image_tag 'user_new' if user.registered? %></td>
|
||||||
<td align="center"><%= format_time(user.created_on) %></td>
|
<td align="center"><%= format_time(user.created_on) %></td>
|
||||||
<td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
|
<td align="center"><%= format_time(user.last_login_on) unless user.last_login_on.nil? %></td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
default directory for uploaded files
|
|
@ -7,7 +7,7 @@ div.calendar { position: relative; }
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
color: #000;
|
color: #000;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
background: #eef;
|
background: #fafbfc;
|
||||||
font-family: tahoma,verdana,sans-serif;
|
font-family: tahoma,verdana,sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@ div.calendar { position: relative; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar .nav {
|
.calendar .nav {
|
||||||
background: #778 url(menuarrow.gif) no-repeat 100% 100%;
|
background: #467aa7 url(menuarrow.gif) no-repeat 100% 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar thead .title { /* This holds the current "month, year" */
|
.calendar thead .title { /* This holds the current "month, year" */
|
||||||
|
@ -31,7 +31,7 @@ div.calendar { position: relative; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
|
.calendar thead .headrow { /* Row <TR> containing navigation buttons */
|
||||||
background: #778;
|
background: #467aa7;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -51,9 +51,8 @@ div.calendar { position: relative; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar thead .hilite { /* How do the buttons in header appear when hover */
|
.calendar thead .hilite { /* How do the buttons in header appear when hover */
|
||||||
background-color: #aaf;
|
background-color: #80b0da;
|
||||||
color: #000;
|
color: #000;
|
||||||
border: 1px solid #04f;
|
|
||||||
padding: 1px;
|
padding: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,11 +88,11 @@ div.calendar { position: relative; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar tbody .rowhilite td.wn {
|
.calendar tbody .rowhilite td.wn {
|
||||||
background: #eef;
|
background: #80b0da;
|
||||||
}
|
}
|
||||||
|
|
||||||
.calendar tbody td.hilite { /* Hovered cells <TD> */
|
.calendar tbody td.hilite { /* Hovered cells <TD> */
|
||||||
background: #def;
|
background: #80b0da;
|
||||||
padding: 1px 3px 1px 1px;
|
padding: 1px 3px 1px 1px;
|
||||||
border: 1px solid #bbb;
|
border: 1px solid #bbb;
|
||||||
}
|
}
|
Loading…
Reference in New Issue