@@ -1,346 +1,347 | |||
|
1 |
# |
|
|
2 |
# Copyright (C) 2006-200 |
|
|
1 | # Redmine - project management software | |
|
2 | # Copyright (C) 2006-2009 Jean-Philippe Lang | |
|
3 | 3 | # |
|
4 | 4 | # This program is free software; you can redistribute it and/or |
|
5 | 5 | # modify it under the terms of the GNU General Public License |
|
6 | 6 | # as published by the Free Software Foundation; either version 2 |
|
7 | 7 | # of the License, or (at your option) any later version. |
|
8 | 8 | # |
|
9 | 9 | # This program is distributed in the hope that it will be useful, |
|
10 | 10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 | 11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 | 12 | # GNU General Public License for more details. |
|
13 | 13 | # |
|
14 | 14 | # You should have received a copy of the GNU General Public License |
|
15 | 15 | # along with this program; if not, write to the Free Software |
|
16 | 16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
17 | 17 | |
|
18 | 18 | class ProjectsController < ApplicationController |
|
19 | 19 | menu_item :overview |
|
20 | 20 | menu_item :activity, :only => :activity |
|
21 | 21 | menu_item :roadmap, :only => :roadmap |
|
22 | 22 | menu_item :files, :only => [:list_files, :add_file] |
|
23 | 23 | menu_item :settings, :only => :settings |
|
24 | 24 | menu_item :issues, :only => [:changelog] |
|
25 | 25 | |
|
26 | 26 | before_filter :find_project, :except => [ :index, :list, :add, :copy, :activity ] |
|
27 | 27 | before_filter :find_optional_project, :only => :activity |
|
28 | 28 | before_filter :authorize, :except => [ :index, :list, :add, :copy, :archive, :unarchive, :destroy, :activity ] |
|
29 | 29 | before_filter :authorize_global, :only => :add |
|
30 | 30 | before_filter :require_admin, :only => [ :copy, :archive, :unarchive, :destroy ] |
|
31 | 31 | accept_key_auth :activity |
|
32 | 32 | |
|
33 | 33 | after_filter :only => [:add, :edit, :archive, :unarchive, :destroy] do |controller| |
|
34 | 34 | if controller.request.post? |
|
35 | 35 | controller.send :expire_action, :controller => 'welcome', :action => 'robots.txt' |
|
36 | 36 | end |
|
37 | 37 | end |
|
38 | 38 | |
|
39 | 39 | helper :sort |
|
40 | 40 | include SortHelper |
|
41 | 41 | helper :custom_fields |
|
42 | 42 | include CustomFieldsHelper |
|
43 | 43 | helper :issues |
|
44 | 44 | helper IssuesHelper |
|
45 | 45 | helper :queries |
|
46 | 46 | include QueriesHelper |
|
47 | 47 | helper :repositories |
|
48 | 48 | include RepositoriesHelper |
|
49 | 49 | include ProjectsHelper |
|
50 | 50 | |
|
51 | 51 | # Lists visible projects |
|
52 | 52 | def index |
|
53 | 53 | respond_to do |format| |
|
54 | 54 | format.html { |
|
55 | 55 | @projects = Project.visible.find(:all, :order => 'lft') |
|
56 | 56 | } |
|
57 | 57 | format.atom { |
|
58 | 58 | projects = Project.visible.find(:all, :order => 'created_on DESC', |
|
59 | 59 | :limit => Setting.feeds_limit.to_i) |
|
60 | 60 | render_feed(projects, :title => "#{Setting.app_title}: #{l(:label_project_latest)}") |
|
61 | 61 | } |
|
62 | 62 | end |
|
63 | 63 | end |
|
64 | 64 | |
|
65 | 65 | # Add a new project |
|
66 | 66 | def add |
|
67 | 67 | @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") |
|
68 | 68 | @trackers = Tracker.all |
|
69 | 69 | @project = Project.new(params[:project]) |
|
70 | 70 | if request.get? |
|
71 | 71 | @project.identifier = Project.next_identifier if Setting.sequential_project_identifiers? |
|
72 | 72 | @project.trackers = Tracker.all |
|
73 | 73 | @project.is_public = Setting.default_projects_public? |
|
74 | 74 | @project.enabled_module_names = Redmine::AccessControl.available_project_modules |
|
75 | 75 | else |
|
76 | 76 | @project.enabled_module_names = params[:enabled_modules] |
|
77 | 77 | if @project.save |
|
78 | 78 | @project.set_parent!(params[:project]['parent_id']) if User.current.admin? && params[:project].has_key?('parent_id') |
|
79 | 79 | # Add current user as a project member if he is not admin |
|
80 | 80 | unless User.current.admin? |
|
81 | 81 | r = Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first |
|
82 | 82 | m = Member.new(:user => User.current, :roles => [r]) |
|
83 | 83 | @project.members << m |
|
84 | 84 | end |
|
85 | 85 | flash[:notice] = l(:notice_successful_create) |
|
86 | 86 | redirect_to :controller => 'projects', :action => 'settings', :id => @project |
|
87 | 87 | end |
|
88 | 88 | end |
|
89 | 89 | end |
|
90 | 90 | |
|
91 | 91 | def copy |
|
92 | 92 | @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") |
|
93 | 93 | @trackers = Tracker.all |
|
94 | 94 | @root_projects = Project.find(:all, |
|
95 | 95 | :conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}", |
|
96 | 96 | :order => 'name') |
|
97 | @source_project = Project.find(params[:id]) | |
|
97 | 98 | if request.get? |
|
98 |
@project = Project.copy_from( |
|
|
99 | @project = Project.copy_from(@source_project) | |
|
99 | 100 | if @project |
|
100 | 101 | @project.identifier = Project.next_identifier if Setting.sequential_project_identifiers? |
|
101 | 102 | else |
|
102 | 103 | redirect_to :controller => 'admin', :action => 'projects' |
|
103 | 104 | end |
|
104 | 105 | else |
|
105 | 106 | @project = Project.new(params[:project]) |
|
106 | 107 | @project.enabled_module_names = params[:enabled_modules] |
|
107 |
if @project.copy( |
|
|
108 | if @project.copy(@source_project, :only => params[:only]) | |
|
108 | 109 | @project.set_parent!(params[:project]['parent_id']) if User.current.admin? && params[:project].has_key?('parent_id') |
|
109 | 110 | flash[:notice] = l(:notice_successful_create) |
|
110 | 111 | redirect_to :controller => 'admin', :action => 'projects' |
|
111 | 112 | end |
|
112 | 113 | end |
|
113 | 114 | end |
|
114 | 115 | |
|
115 | 116 | |
|
116 | 117 | # Show @project |
|
117 | 118 | def show |
|
118 | 119 | if params[:jump] |
|
119 | 120 | # try to redirect to the requested menu item |
|
120 | 121 | redirect_to_project_menu_item(@project, params[:jump]) && return |
|
121 | 122 | end |
|
122 | 123 | |
|
123 | 124 | @users_by_role = @project.users_by_role |
|
124 | 125 | @subprojects = @project.children.visible |
|
125 | 126 | @news = @project.news.find(:all, :limit => 5, :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC") |
|
126 | 127 | @trackers = @project.rolled_up_trackers |
|
127 | 128 | |
|
128 | 129 | cond = @project.project_condition(Setting.display_subprojects_issues?) |
|
129 | 130 | |
|
130 | 131 | @open_issues_by_tracker = Issue.visible.count(:group => :tracker, |
|
131 | 132 | :include => [:project, :status, :tracker], |
|
132 | 133 | :conditions => ["(#{cond}) AND #{IssueStatus.table_name}.is_closed=?", false]) |
|
133 | 134 | @total_issues_by_tracker = Issue.visible.count(:group => :tracker, |
|
134 | 135 | :include => [:project, :status, :tracker], |
|
135 | 136 | :conditions => cond) |
|
136 | 137 | |
|
137 | 138 | TimeEntry.visible_by(User.current) do |
|
138 | 139 | @total_hours = TimeEntry.sum(:hours, |
|
139 | 140 | :include => :project, |
|
140 | 141 | :conditions => cond).to_f |
|
141 | 142 | end |
|
142 | 143 | @key = User.current.rss_key |
|
143 | 144 | end |
|
144 | 145 | |
|
145 | 146 | def settings |
|
146 | 147 | @issue_custom_fields = IssueCustomField.find(:all, :order => "#{CustomField.table_name}.position") |
|
147 | 148 | @issue_category ||= IssueCategory.new |
|
148 | 149 | @member ||= @project.members.new |
|
149 | 150 | @trackers = Tracker.all |
|
150 | 151 | @repository ||= @project.repository |
|
151 | 152 | @wiki ||= @project.wiki |
|
152 | 153 | end |
|
153 | 154 | |
|
154 | 155 | # Edit @project |
|
155 | 156 | def edit |
|
156 | 157 | if request.post? |
|
157 | 158 | @project.attributes = params[:project] |
|
158 | 159 | if @project.save |
|
159 | 160 | @project.set_parent!(params[:project]['parent_id']) if User.current.admin? && params[:project].has_key?('parent_id') |
|
160 | 161 | flash[:notice] = l(:notice_successful_update) |
|
161 | 162 | redirect_to :action => 'settings', :id => @project |
|
162 | 163 | else |
|
163 | 164 | settings |
|
164 | 165 | render :action => 'settings' |
|
165 | 166 | end |
|
166 | 167 | end |
|
167 | 168 | end |
|
168 | 169 | |
|
169 | 170 | def modules |
|
170 | 171 | @project.enabled_module_names = params[:enabled_modules] |
|
171 | 172 | redirect_to :action => 'settings', :id => @project, :tab => 'modules' |
|
172 | 173 | end |
|
173 | 174 | |
|
174 | 175 | def archive |
|
175 | 176 | @project.archive if request.post? && @project.active? |
|
176 | 177 | redirect_to(url_for(:controller => 'admin', :action => 'projects', :status => params[:status])) |
|
177 | 178 | end |
|
178 | 179 | |
|
179 | 180 | def unarchive |
|
180 | 181 | @project.unarchive if request.post? && !@project.active? |
|
181 | 182 | redirect_to(url_for(:controller => 'admin', :action => 'projects', :status => params[:status])) |
|
182 | 183 | end |
|
183 | 184 | |
|
184 | 185 | # Delete @project |
|
185 | 186 | def destroy |
|
186 | 187 | @project_to_destroy = @project |
|
187 | 188 | if request.post? and params[:confirm] |
|
188 | 189 | @project_to_destroy.destroy |
|
189 | 190 | redirect_to :controller => 'admin', :action => 'projects' |
|
190 | 191 | end |
|
191 | 192 | # hide project in layout |
|
192 | 193 | @project = nil |
|
193 | 194 | end |
|
194 | 195 | |
|
195 | 196 | # Add a new issue category to @project |
|
196 | 197 | def add_issue_category |
|
197 | 198 | @category = @project.issue_categories.build(params[:category]) |
|
198 | 199 | if request.post? and @category.save |
|
199 | 200 | respond_to do |format| |
|
200 | 201 | format.html do |
|
201 | 202 | flash[:notice] = l(:notice_successful_create) |
|
202 | 203 | redirect_to :action => 'settings', :tab => 'categories', :id => @project |
|
203 | 204 | end |
|
204 | 205 | format.js do |
|
205 | 206 | # IE doesn't support the replace_html rjs method for select box options |
|
206 | 207 | render(:update) {|page| page.replace "issue_category_id", |
|
207 | 208 | content_tag('select', '<option></option>' + options_from_collection_for_select(@project.issue_categories, 'id', 'name', @category.id), :id => 'issue_category_id', :name => 'issue[category_id]') |
|
208 | 209 | } |
|
209 | 210 | end |
|
210 | 211 | end |
|
211 | 212 | end |
|
212 | 213 | end |
|
213 | 214 | |
|
214 | 215 | # Add a new version to @project |
|
215 | 216 | def add_version |
|
216 | 217 | @version = @project.versions.build(params[:version]) |
|
217 | 218 | if request.post? and @version.save |
|
218 | 219 | flash[:notice] = l(:notice_successful_create) |
|
219 | 220 | redirect_to :action => 'settings', :tab => 'versions', :id => @project |
|
220 | 221 | end |
|
221 | 222 | end |
|
222 | 223 | |
|
223 | 224 | def add_file |
|
224 | 225 | if request.post? |
|
225 | 226 | container = (params[:version_id].blank? ? @project : @project.versions.find_by_id(params[:version_id])) |
|
226 | 227 | attachments = attach_files(container, params[:attachments]) |
|
227 | 228 | if !attachments.empty? && Setting.notified_events.include?('file_added') |
|
228 | 229 | Mailer.deliver_attachments_added(attachments) |
|
229 | 230 | end |
|
230 | 231 | redirect_to :controller => 'projects', :action => 'list_files', :id => @project |
|
231 | 232 | return |
|
232 | 233 | end |
|
233 | 234 | @versions = @project.versions.sort |
|
234 | 235 | end |
|
235 | 236 | |
|
236 | 237 | def save_activities |
|
237 | 238 | if request.post? && params[:enumerations] |
|
238 | 239 | Project.transaction do |
|
239 | 240 | params[:enumerations].each do |id, activity| |
|
240 | 241 | @project.update_or_create_time_entry_activity(id, activity) |
|
241 | 242 | end |
|
242 | 243 | end |
|
243 | 244 | end |
|
244 | 245 | |
|
245 | 246 | redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project |
|
246 | 247 | end |
|
247 | 248 | |
|
248 | 249 | def reset_activities |
|
249 | 250 | @project.time_entry_activities.each do |time_entry_activity| |
|
250 | 251 | time_entry_activity.destroy(time_entry_activity.parent) |
|
251 | 252 | end |
|
252 | 253 | redirect_to :controller => 'projects', :action => 'settings', :tab => 'activities', :id => @project |
|
253 | 254 | end |
|
254 | 255 | |
|
255 | 256 | def list_files |
|
256 | 257 | sort_init 'filename', 'asc' |
|
257 | 258 | sort_update 'filename' => "#{Attachment.table_name}.filename", |
|
258 | 259 | 'created_on' => "#{Attachment.table_name}.created_on", |
|
259 | 260 | 'size' => "#{Attachment.table_name}.filesize", |
|
260 | 261 | 'downloads' => "#{Attachment.table_name}.downloads" |
|
261 | 262 | |
|
262 | 263 | @containers = [ Project.find(@project.id, :include => :attachments, :order => sort_clause)] |
|
263 | 264 | @containers += @project.versions.find(:all, :include => :attachments, :order => sort_clause).sort.reverse |
|
264 | 265 | render :layout => !request.xhr? |
|
265 | 266 | end |
|
266 | 267 | |
|
267 | 268 | # Show changelog for @project |
|
268 | 269 | def changelog |
|
269 | 270 | @trackers = @project.trackers.find(:all, :conditions => ["is_in_chlog=?", true], :order => 'position') |
|
270 | 271 | retrieve_selected_tracker_ids(@trackers) |
|
271 | 272 | @versions = @project.versions.sort |
|
272 | 273 | end |
|
273 | 274 | |
|
274 | 275 | def roadmap |
|
275 | 276 | @trackers = @project.trackers.find(:all, :conditions => ["is_in_roadmap=?", true]) |
|
276 | 277 | retrieve_selected_tracker_ids(@trackers) |
|
277 | 278 | @versions = @project.versions.sort |
|
278 | 279 | @versions = @versions.select {|v| !v.completed? } unless params[:completed] |
|
279 | 280 | end |
|
280 | 281 | |
|
281 | 282 | def activity |
|
282 | 283 | @days = Setting.activity_days_default.to_i |
|
283 | 284 | |
|
284 | 285 | if params[:from] |
|
285 | 286 | begin; @date_to = params[:from].to_date + 1; rescue; end |
|
286 | 287 | end |
|
287 | 288 | |
|
288 | 289 | @date_to ||= Date.today + 1 |
|
289 | 290 | @date_from = @date_to - @days |
|
290 | 291 | @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1') |
|
291 | 292 | @author = (params[:user_id].blank? ? nil : User.active.find(params[:user_id])) |
|
292 | 293 | |
|
293 | 294 | @activity = Redmine::Activity::Fetcher.new(User.current, :project => @project, |
|
294 | 295 | :with_subprojects => @with_subprojects, |
|
295 | 296 | :author => @author) |
|
296 | 297 | @activity.scope_select {|t| !params["show_#{t}"].nil?} |
|
297 | 298 | @activity.scope = (@author.nil? ? :default : :all) if @activity.scope.empty? |
|
298 | 299 | |
|
299 | 300 | events = @activity.events(@date_from, @date_to) |
|
300 | 301 | |
|
301 | 302 | respond_to do |format| |
|
302 | 303 | format.html { |
|
303 | 304 | @events_by_day = events.group_by(&:event_date) |
|
304 | 305 | render :layout => false if request.xhr? |
|
305 | 306 | } |
|
306 | 307 | format.atom { |
|
307 | 308 | title = l(:label_activity) |
|
308 | 309 | if @author |
|
309 | 310 | title = @author.name |
|
310 | 311 | elsif @activity.scope.size == 1 |
|
311 | 312 | title = l("label_#{@activity.scope.first.singularize}_plural") |
|
312 | 313 | end |
|
313 | 314 | render_feed(events, :title => "#{@project || Setting.app_title}: #{title}") |
|
314 | 315 | } |
|
315 | 316 | end |
|
316 | 317 | |
|
317 | 318 | rescue ActiveRecord::RecordNotFound |
|
318 | 319 | render_404 |
|
319 | 320 | end |
|
320 | 321 | |
|
321 | 322 | private |
|
322 | 323 | # Find project of id params[:id] |
|
323 | 324 | # if not found, redirect to project list |
|
324 | 325 | # Used as a before_filter |
|
325 | 326 | def find_project |
|
326 | 327 | @project = Project.find(params[:id]) |
|
327 | 328 | rescue ActiveRecord::RecordNotFound |
|
328 | 329 | render_404 |
|
329 | 330 | end |
|
330 | 331 | |
|
331 | 332 | def find_optional_project |
|
332 | 333 | return true unless params[:id] |
|
333 | 334 | @project = Project.find(params[:id]) |
|
334 | 335 | authorize |
|
335 | 336 | rescue ActiveRecord::RecordNotFound |
|
336 | 337 | render_404 |
|
337 | 338 | end |
|
338 | 339 | |
|
339 | 340 | def retrieve_selected_tracker_ids(selectable_trackers) |
|
340 | 341 | if ids = params[:tracker_ids] |
|
341 | 342 | @selected_tracker_ids = (ids.is_a? Array) ? ids.collect { |id| id.to_i.to_s } : ids.split('/').collect { |id| id.to_i.to_s } |
|
342 | 343 | else |
|
343 | 344 | @selected_tracker_ids = selectable_trackers.collect {|t| t.id.to_s } |
|
344 | 345 | end |
|
345 | 346 | end |
|
346 | 347 | end |
@@ -1,26 +1,26 | |||
|
1 | 1 | <h2><%=l(:label_project_new)%></h2> |
|
2 | 2 | |
|
3 | 3 | <% labelled_tabular_form_for :project, @project, :url => { :action => "copy" } do |f| %> |
|
4 | 4 | <%= render :partial => 'form', :locals => { :f => f } %> |
|
5 | 5 | |
|
6 | 6 | <fieldset class="box"><legend><%= l(:label_module_plural) %></legend> |
|
7 | 7 | <% Redmine::AccessControl.available_project_modules.each do |m| %> |
|
8 | 8 | <label class="floating"> |
|
9 | 9 | <%= check_box_tag 'enabled_modules[]', m, @project.module_enabled?(m) %> |
|
10 | 10 | <%= l_or_humanize(m, :prefix => "project_module_") %> |
|
11 | 11 | </label> |
|
12 | 12 | <% end %> |
|
13 | 13 | </fieldset> |
|
14 | 14 | |
|
15 | 15 | <fieldset class="box"><legend><%= l(:button_copy) %></legend> |
|
16 |
<label class=" |
|
|
17 |
<label class=" |
|
|
18 |
<label class=" |
|
|
19 |
<label class=" |
|
|
20 |
<label class=" |
|
|
21 |
<label class=" |
|
|
16 | <label class="block"><%= check_box_tag 'only[]', 'members', true %> <%= l(:label_member_plural) %> (<%= @source_project.members.count %>)</label> | |
|
17 | <label class="block"><%= check_box_tag 'only[]', 'versions', true %> <%= l(:label_version_plural) %> (<%= @source_project.versions.count %>)</label> | |
|
18 | <label class="block"><%= check_box_tag 'only[]', 'issue_categories', true %> <%= l(:label_issue_category_plural) %> (<%= @source_project.issue_categories.count %>)</label> | |
|
19 | <label class="block"><%= check_box_tag 'only[]', 'issues', true %> <%= l(:label_issue_plural) %> (<%= @source_project.issues.count %>)</label> | |
|
20 | <label class="block"><%= check_box_tag 'only[]', 'queries', true %> <%= l(:label_query_plural) %> (<%= @source_project.queries.count %>)</label> | |
|
21 | <label class="block"><%= check_box_tag 'only[]', 'wiki', true %> <%= l(:label_wiki_page_plural) %> (<%= @source_project.wiki.nil? ? 0 : @source_project.wiki.pages.count %>)</label> | |
|
22 | 22 | <%= hidden_field_tag 'only[]', '' %> |
|
23 | 23 | </fieldset> |
|
24 | 24 | |
|
25 | 25 | <%= submit_tag l(:button_copy) %> |
|
26 | 26 | <% end %> |
@@ -1,799 +1,808 | |||
|
1 | 1 | body { font-family: Verdana, sans-serif; font-size: 12px; color:#484848; margin: 0; padding: 0; min-width: 900px; } |
|
2 | 2 | |
|
3 | 3 | h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, sans-serif;} |
|
4 | 4 | h1 {margin:0; padding:0; font-size: 24px;} |
|
5 | 5 | h2, .wiki h1 {font-size: 20px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;} |
|
6 | 6 | h3, .wiki h2 {font-size: 16px;padding: 2px 10px 1px 0px;margin: 0 0 10px 0; border-bottom: 1px solid #bbbbbb; color: #444;} |
|
7 | 7 | h4, .wiki h3 {font-size: 13px;padding: 2px 10px 1px 0px;margin-bottom: 5px; border-bottom: 1px dotted #bbbbbb; color: #444;} |
|
8 | 8 | |
|
9 | 9 | /***** Layout *****/ |
|
10 | 10 | #wrapper {background: white;} |
|
11 | 11 | |
|
12 | 12 | #top-menu {background: #2C4056; color: #fff; height:1.8em; font-size: 0.8em; padding: 2px 2px 0px 6px;} |
|
13 | 13 | #top-menu ul {margin: 0; padding: 0;} |
|
14 | 14 | #top-menu li { |
|
15 | 15 | float:left; |
|
16 | 16 | list-style-type:none; |
|
17 | 17 | margin: 0px 0px 0px 0px; |
|
18 | 18 | padding: 0px 0px 0px 0px; |
|
19 | 19 | white-space:nowrap; |
|
20 | 20 | } |
|
21 | 21 | #top-menu a {color: #fff; margin-right: 8px; font-weight: bold;} |
|
22 | 22 | #top-menu #loggedas { float: right; margin-right: 0.5em; color: #fff; } |
|
23 | 23 | |
|
24 | 24 | #account {float:right;} |
|
25 | 25 | |
|
26 | 26 | #header {height:5.3em;margin:0;background-color:#507AAA;color:#f8f8f8; padding: 4px 8px 0px 6px; position:relative;} |
|
27 | 27 | #header a {color:#f8f8f8;} |
|
28 | 28 | #header h1 a.ancestor { font-size: 80%; } |
|
29 | 29 | #quick-search {float:right;} |
|
30 | 30 | |
|
31 | 31 | #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;} |
|
32 | 32 | #main-menu ul {margin: 0; padding: 0;} |
|
33 | 33 | #main-menu li { |
|
34 | 34 | float:left; |
|
35 | 35 | list-style-type:none; |
|
36 | 36 | margin: 0px 2px 0px 0px; |
|
37 | 37 | padding: 0px 0px 0px 0px; |
|
38 | 38 | white-space:nowrap; |
|
39 | 39 | } |
|
40 | 40 | #main-menu li a { |
|
41 | 41 | display: block; |
|
42 | 42 | color: #fff; |
|
43 | 43 | text-decoration: none; |
|
44 | 44 | font-weight: bold; |
|
45 | 45 | margin: 0; |
|
46 | 46 | padding: 4px 10px 4px 10px; |
|
47 | 47 | } |
|
48 | 48 | #main-menu li a:hover {background:#759FCF; color:#fff;} |
|
49 | 49 | #main-menu li a.selected, #main-menu li a.selected:hover {background:#fff; color:#555;} |
|
50 | 50 | |
|
51 | 51 | #main {background-color:#EEEEEE;} |
|
52 | 52 | |
|
53 | 53 | #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;} |
|
54 | 54 | * html #sidebar{ width: 17%; } |
|
55 | 55 | #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; } |
|
56 | 56 | #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; } |
|
57 | 57 | * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; } |
|
58 | 58 | |
|
59 | 59 | #content { width: 80%; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; } |
|
60 | 60 | * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;} |
|
61 | 61 | html>body #content { min-height: 600px; } |
|
62 | 62 | * html body #content { height: 600px; } /* IE */ |
|
63 | 63 | |
|
64 | 64 | #main.nosidebar #sidebar{ display: none; } |
|
65 | 65 | #main.nosidebar #content{ width: auto; border-right: 0; } |
|
66 | 66 | |
|
67 | 67 | #footer {clear: both; border-top: 1px solid #bbb; font-size: 0.9em; color: #aaa; padding: 5px; text-align:center; background:#fff;} |
|
68 | 68 | |
|
69 | 69 | #login-form table {margin-top:5em; padding:1em; margin-left: auto; margin-right: auto; border: 2px solid #FDBF3B; background-color:#FFEBC1; } |
|
70 | 70 | #login-form table td {padding: 6px;} |
|
71 | 71 | #login-form label {font-weight: bold;} |
|
72 | 72 | #login-form input#username, #login-form input#password { width: 300px; } |
|
73 | 73 | |
|
74 | 74 | input#openid_url { background: url(../images/openid-bg.gif) no-repeat; background-color: #fff; background-position: 0 50%; padding-left: 18px; } |
|
75 | 75 | |
|
76 | 76 | .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
|
77 | 77 | |
|
78 | 78 | /***** Links *****/ |
|
79 | 79 | a, a:link, a:visited{ color: #2A5685; text-decoration: none; } |
|
80 | 80 | a:hover, a:active{ color: #c61a1a; text-decoration: underline;} |
|
81 | 81 | a img{ border: 0; } |
|
82 | 82 | |
|
83 | 83 | a.issue.closed, a.issue.closed:link, a.issue.closed:visited { color: #999; text-decoration: line-through; } |
|
84 | 84 | |
|
85 | 85 | /***** Tables *****/ |
|
86 | 86 | table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; } |
|
87 | 87 | table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; } |
|
88 | 88 | table.list td { vertical-align: top; } |
|
89 | 89 | table.list td.id { width: 2%; text-align: center;} |
|
90 | 90 | table.list td.checkbox { width: 15px; padding: 0px;} |
|
91 | 91 | table.list td.buttons { width: 15%; white-space:nowrap; text-align: right; } |
|
92 | 92 | table.list td.buttons a { padding-right: 0.6em; } |
|
93 | 93 | |
|
94 | 94 | tr.project td.name a { padding-left: 16px; white-space:nowrap; } |
|
95 | 95 | tr.project.parent td.name a { background: url('../images/bullet_toggle_minus.png') no-repeat; } |
|
96 | 96 | |
|
97 | 97 | tr.issue { text-align: center; white-space: nowrap; } |
|
98 | 98 | tr.issue td.subject, tr.issue td.category, td.assigned_to { white-space: normal; } |
|
99 | 99 | tr.issue td.subject { text-align: left; } |
|
100 | 100 | tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;} |
|
101 | 101 | |
|
102 | 102 | tr.entry { border: 1px solid #f8f8f8; } |
|
103 | 103 | tr.entry td { white-space: nowrap; } |
|
104 | 104 | tr.entry td.filename { width: 30%; } |
|
105 | 105 | tr.entry td.size { text-align: right; font-size: 90%; } |
|
106 | 106 | tr.entry td.revision, tr.entry td.author { text-align: center; } |
|
107 | 107 | tr.entry td.age { text-align: right; } |
|
108 | 108 | tr.entry.file td.filename a { margin-left: 16px; } |
|
109 | 109 | |
|
110 | 110 | tr span.expander {background-image: url(../images/bullet_toggle_plus.png); padding-left: 8px; margin-left: 0; cursor: pointer;} |
|
111 | 111 | tr.open span.expander {background-image: url(../images/bullet_toggle_minus.png);} |
|
112 | 112 | |
|
113 | 113 | tr.changeset td.author { text-align: center; width: 15%; } |
|
114 | 114 | tr.changeset td.committed_on { text-align: center; width: 15%; } |
|
115 | 115 | |
|
116 | 116 | table.files tr.file td { text-align: center; } |
|
117 | 117 | table.files tr.file td.filename { text-align: left; padding-left: 24px; } |
|
118 | 118 | table.files tr.file td.digest { font-size: 80%; } |
|
119 | 119 | |
|
120 | 120 | table.members td.roles, table.memberships td.roles { width: 45%; } |
|
121 | 121 | |
|
122 | 122 | tr.message { height: 2.6em; } |
|
123 | 123 | tr.message td.last_message { font-size: 80%; } |
|
124 | 124 | tr.message.locked td.subject a { background-image: url(../images/locked.png); } |
|
125 | 125 | tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; } |
|
126 | 126 | |
|
127 | 127 | tr.user td { width:13%; } |
|
128 | 128 | tr.user td.email { width:18%; } |
|
129 | 129 | tr.user td { white-space: nowrap; } |
|
130 | 130 | tr.user.locked, tr.user.registered { color: #aaa; } |
|
131 | 131 | tr.user.locked a, tr.user.registered a { color: #aaa; } |
|
132 | 132 | |
|
133 | 133 | tr.time-entry { text-align: center; white-space: nowrap; } |
|
134 | 134 | tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; white-space: normal; } |
|
135 | 135 | td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; } |
|
136 | 136 | td.hours .hours-dec { font-size: 0.9em; } |
|
137 | 137 | |
|
138 | 138 | table.plugins td { vertical-align: middle; } |
|
139 | 139 | table.plugins td.configure { text-align: right; padding-right: 1em; } |
|
140 | 140 | table.plugins span.name { font-weight: bold; display: block; margin-bottom: 6px; } |
|
141 | 141 | table.plugins span.description { display: block; font-size: 0.9em; } |
|
142 | 142 | table.plugins span.url { display: block; font-size: 0.9em; } |
|
143 | 143 | |
|
144 | 144 | table.list tbody tr.group td { padding: 0.8em 0 0.5em 0.3em; font-weight: bold; border-bottom: 1px solid #ccc; } |
|
145 | 145 | table.list tbody tr.group span.count { color: #aaa; font-size: 80%; } |
|
146 | 146 | |
|
147 | 147 | table.list tbody tr:hover { background-color:#ffffdd; } |
|
148 | 148 | table.list tbody tr.group:hover { background-color:inherit; } |
|
149 | 149 | table td {padding:2px;} |
|
150 | 150 | table p {margin:0;} |
|
151 | 151 | .odd {background-color:#f6f7f8;} |
|
152 | 152 | .even {background-color: #fff;} |
|
153 | 153 | |
|
154 | 154 | a.sort { padding-right: 16px; background-position: 100% 50%; background-repeat: no-repeat; } |
|
155 | 155 | a.sort.asc { background-image: url(../images/sort_asc.png); } |
|
156 | 156 | a.sort.desc { background-image: url(../images/sort_desc.png); } |
|
157 | 157 | |
|
158 | 158 | table.attributes { width: 100% } |
|
159 | 159 | table.attributes th { vertical-align: top; text-align: left; } |
|
160 | 160 | table.attributes td { vertical-align: top; } |
|
161 | 161 | |
|
162 | 162 | td.center {text-align:center;} |
|
163 | 163 | |
|
164 | 164 | .highlight { background-color: #FCFD8D;} |
|
165 | 165 | .highlight.token-1 { background-color: #faa;} |
|
166 | 166 | .highlight.token-2 { background-color: #afa;} |
|
167 | 167 | .highlight.token-3 { background-color: #aaf;} |
|
168 | 168 | |
|
169 | 169 | .box{ |
|
170 | 170 | padding:6px; |
|
171 | 171 | margin-bottom: 10px; |
|
172 | 172 | background-color:#f6f6f6; |
|
173 | 173 | color:#505050; |
|
174 | 174 | line-height:1.5em; |
|
175 | 175 | border: 1px solid #e4e4e4; |
|
176 | 176 | } |
|
177 | 177 | |
|
178 | 178 | div.square { |
|
179 | 179 | border: 1px solid #999; |
|
180 | 180 | float: left; |
|
181 | 181 | margin: .3em .4em 0 .4em; |
|
182 | 182 | overflow: hidden; |
|
183 | 183 | width: .6em; height: .6em; |
|
184 | 184 | } |
|
185 | 185 | .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;} |
|
186 | 186 | .contextual input, .contextual select {font-size:0.9em;} |
|
187 | 187 | .message .contextual { margin-top: 0; } |
|
188 | 188 | |
|
189 | 189 | .splitcontentleft{float:left; width:49%;} |
|
190 | 190 | .splitcontentright{float:right; width:49%;} |
|
191 | 191 | form {display: inline;} |
|
192 | 192 | input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;} |
|
193 | 193 | fieldset {border: 1px solid #e4e4e4; margin:0;} |
|
194 | 194 | legend {color: #484848;} |
|
195 | 195 | hr { width: 100%; height: 1px; background: #ccc; border: 0;} |
|
196 | 196 | blockquote { font-style: italic; border-left: 3px solid #e0e0e0; padding-left: 0.6em; margin-left: 2.4em;} |
|
197 | 197 | blockquote blockquote { margin-left: 0;} |
|
198 | 198 | textarea.wiki-edit { width: 99%; } |
|
199 | 199 | li p {margin-top: 0;} |
|
200 | 200 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} |
|
201 | 201 | p.breadcrumb { font-size: 0.9em; margin: 4px 0 4px 0;} |
|
202 | 202 | p.subtitle { font-size: 0.9em; margin: -6px 0 12px 0; font-style: italic; } |
|
203 | 203 | p.footnote { font-size: 0.9em; margin-top: 0px; margin-bottom: 0px; } |
|
204 | 204 | |
|
205 | 205 | fieldset.collapsible { border-width: 1px 0 0 0; font-size: 0.9em; } |
|
206 | 206 | fieldset.collapsible legend { padding-left: 16px; background: url(../images/arrow_expanded.png) no-repeat 0% 40%; cursor:pointer; } |
|
207 | 207 | fieldset.collapsible.collapsed legend { background-image: url(../images/arrow_collapsed.png); } |
|
208 | 208 | |
|
209 | 209 | fieldset#date-range p { margin: 2px 0 2px 0; } |
|
210 | 210 | fieldset#filters table { border-collapse: collapse; } |
|
211 | 211 | fieldset#filters table td { padding: 0; vertical-align: middle; } |
|
212 | 212 | fieldset#filters tr.filter { height: 2em; } |
|
213 | 213 | fieldset#filters td.add-filter { text-align: right; vertical-align: top; } |
|
214 | 214 | .buttons { font-size: 0.9em; margin-bottom: 1.4em; margin-top: 1em; } |
|
215 | 215 | |
|
216 | 216 | div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;} |
|
217 | 217 | div#issue-changesets .changeset { padding: 4px;} |
|
218 | 218 | div#issue-changesets .changeset { border-bottom: 1px solid #ddd; } |
|
219 | 219 | div#issue-changesets p { margin-top: 0; margin-bottom: 1em;} |
|
220 | 220 | |
|
221 | 221 | div#activity dl, #search-results { margin-left: 2em; } |
|
222 | 222 | div#activity dd, #search-results dd { margin-bottom: 1em; padding-left: 18px; font-size: 0.9em; } |
|
223 | 223 | div#activity dt, #search-results dt { margin-bottom: 0px; padding-left: 20px; line-height: 18px; background-position: 0 50%; background-repeat: no-repeat; } |
|
224 | 224 | div#activity dt.me .time { border-bottom: 1px solid #999; } |
|
225 | 225 | div#activity dt .time { color: #777; font-size: 80%; } |
|
226 | 226 | div#activity dd .description, #search-results dd .description { font-style: italic; } |
|
227 | 227 | div#activity span.project:after, #search-results span.project:after { content: " -"; } |
|
228 | 228 | div#activity dd span.description, #search-results dd span.description { display:block; color: #808080; } |
|
229 | 229 | |
|
230 | 230 | #search-results dd { margin-bottom: 1em; padding-left: 20px; margin-left:0px; } |
|
231 | 231 | |
|
232 | 232 | div#search-results-counts {float:right;} |
|
233 | 233 | div#search-results-counts ul { margin-top: 0.5em; } |
|
234 | 234 | div#search-results-counts li { list-style-type:none; float: left; margin-left: 1em; } |
|
235 | 235 | |
|
236 | 236 | dt.issue { background-image: url(../images/ticket.png); } |
|
237 | 237 | dt.issue-edit { background-image: url(../images/ticket_edit.png); } |
|
238 | 238 | dt.issue-closed { background-image: url(../images/ticket_checked.png); } |
|
239 | 239 | dt.issue-note { background-image: url(../images/ticket_note.png); } |
|
240 | 240 | dt.changeset { background-image: url(../images/changeset.png); } |
|
241 | 241 | dt.news { background-image: url(../images/news.png); } |
|
242 | 242 | dt.message { background-image: url(../images/message.png); } |
|
243 | 243 | dt.reply { background-image: url(../images/comments.png); } |
|
244 | 244 | dt.wiki-page { background-image: url(../images/wiki_edit.png); } |
|
245 | 245 | dt.attachment { background-image: url(../images/attachment.png); } |
|
246 | 246 | dt.document { background-image: url(../images/document.png); } |
|
247 | 247 | dt.project { background-image: url(../images/projects.png); } |
|
248 | 248 | dt.time-entry { background-image: url(../images/time.png); } |
|
249 | 249 | |
|
250 | 250 | #search-results dt.issue.closed { background-image: url(../images/ticket_checked.png); } |
|
251 | 251 | |
|
252 | 252 | div#roadmap fieldset.related-issues { margin-bottom: 1em; } |
|
253 | 253 | div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; } |
|
254 | 254 | div#roadmap .wiki h1:first-child { display: none; } |
|
255 | 255 | div#roadmap .wiki h1 { font-size: 120%; } |
|
256 | 256 | div#roadmap .wiki h2 { font-size: 110%; } |
|
257 | 257 | |
|
258 | 258 | div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; } |
|
259 | 259 | div#version-summary fieldset { margin-bottom: 1em; } |
|
260 | 260 | div#version-summary .total-hours { text-align: right; } |
|
261 | 261 | |
|
262 | 262 | table#time-report td.hours, table#time-report th.period, table#time-report th.total { text-align: right; padding-right: 0.5em; } |
|
263 | 263 | table#time-report tbody tr { font-style: italic; color: #777; } |
|
264 | 264 | table#time-report tbody tr.last-level { font-style: normal; color: #555; } |
|
265 | 265 | table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; } |
|
266 | 266 | table#time-report .hours-dec { font-size: 0.9em; } |
|
267 | 267 | |
|
268 | 268 | form#issue-form .attributes { margin-bottom: 8px; } |
|
269 | 269 | form#issue-form .attributes p { padding-top: 1px; padding-bottom: 2px; } |
|
270 | 270 | form#issue-form .attributes select { min-width: 30%; } |
|
271 | 271 | |
|
272 | 272 | ul.projects { margin: 0; padding-left: 1em; } |
|
273 | 273 | ul.projects.root { margin: 0; padding: 0; } |
|
274 | 274 | ul.projects ul { border-left: 3px solid #e0e0e0; } |
|
275 | 275 | ul.projects li { list-style-type:none; } |
|
276 | 276 | ul.projects li.root { margin-bottom: 1em; } |
|
277 | 277 | ul.projects li.child { margin-top: 1em;} |
|
278 | 278 | ul.projects div.root a.project { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; } |
|
279 | 279 | .my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; } |
|
280 | 280 | |
|
281 | 281 | #tracker_project_ids ul { margin: 0; padding-left: 1em; } |
|
282 | 282 | #tracker_project_ids li { list-style-type:none; } |
|
283 | 283 | |
|
284 | 284 | ul.properties {padding:0; font-size: 0.9em; color: #777;} |
|
285 | 285 | ul.properties li {list-style-type:none;} |
|
286 | 286 | ul.properties li span {font-style:italic;} |
|
287 | 287 | |
|
288 | 288 | .total-hours { font-size: 110%; font-weight: bold; } |
|
289 | 289 | .total-hours span.hours-int { font-size: 120%; } |
|
290 | 290 | |
|
291 | 291 | .autoscroll {overflow-x: auto; padding:1px; margin-bottom: 1.2em;} |
|
292 | 292 | #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; } |
|
293 | 293 | |
|
294 | 294 | .pagination {font-size: 90%} |
|
295 | 295 | p.pagination {margin-top:8px;} |
|
296 | 296 | |
|
297 | 297 | /***** Tabular forms ******/ |
|
298 | 298 | .tabular p{ |
|
299 | 299 | margin: 0; |
|
300 | 300 | padding: 5px 0 8px 0; |
|
301 | 301 | padding-left: 180px; /*width of left column containing the label elements*/ |
|
302 | 302 | height: 1%; |
|
303 | 303 | clear:left; |
|
304 | 304 | } |
|
305 | 305 | |
|
306 | 306 | html>body .tabular p {overflow:hidden;} |
|
307 | 307 | |
|
308 | 308 | .tabular label{ |
|
309 | 309 | font-weight: bold; |
|
310 | 310 | float: left; |
|
311 | 311 | text-align: right; |
|
312 | 312 | margin-left: -180px; /*width of left column*/ |
|
313 | 313 | width: 175px; /*width of labels. Should be smaller than left column to create some right |
|
314 | 314 | margin*/ |
|
315 | 315 | } |
|
316 | 316 | |
|
317 | 317 | .tabular label.floating{ |
|
318 | 318 | font-weight: normal; |
|
319 | 319 | margin-left: 0px; |
|
320 | 320 | text-align: left; |
|
321 | 321 | width: 270px; |
|
322 | 322 | } |
|
323 | 323 | |
|
324 | .tabular label.block{ | |
|
325 | font-weight: normal; | |
|
326 | margin-left: 0px; | |
|
327 | text-align: left; | |
|
328 | float: none; | |
|
329 | display: block; | |
|
330 | width: auto; | |
|
331 | } | |
|
332 | ||
|
324 | 333 | input#time_entry_comments { width: 90%;} |
|
325 | 334 | |
|
326 | 335 | #preview fieldset {margin-top: 1em; background: url(../images/draft.png)} |
|
327 | 336 | |
|
328 | 337 | .tabular.settings p{ padding-left: 300px; } |
|
329 | 338 | .tabular.settings label{ margin-left: -300px; width: 295px; } |
|
330 | 339 | |
|
331 | 340 | .required {color: #bb0000;} |
|
332 | 341 | .summary {font-style: italic;} |
|
333 | 342 | |
|
334 | 343 | #attachments_fields input[type=text] {margin-left: 8px; } |
|
335 | 344 | |
|
336 | 345 | div.attachments { margin-top: 12px; } |
|
337 | 346 | div.attachments p { margin:4px 0 2px 0; } |
|
338 | 347 | div.attachments img { vertical-align: middle; } |
|
339 | 348 | div.attachments span.author { font-size: 0.9em; color: #888; } |
|
340 | 349 | |
|
341 | 350 | p.other-formats { text-align: right; font-size:0.9em; color: #666; } |
|
342 | 351 | .other-formats span + span:before { content: "| "; } |
|
343 | 352 | |
|
344 | 353 | a.atom { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; } |
|
345 | 354 | |
|
346 | 355 | /* Project members tab */ |
|
347 | 356 | div#tab-content-members .splitcontentleft, div#tab-content-memberships .splitcontentleft, div#tab-content-users .splitcontentleft { width: 64% } |
|
348 | 357 | div#tab-content-members .splitcontentright, div#tab-content-memberships .splitcontentright, div#tab-content-users .splitcontentright { width: 34% } |
|
349 | 358 | div#tab-content-members fieldset, div#tab-content-memberships fieldset, div#tab-content-users fieldset { padding:1em; margin-bottom: 1em; } |
|
350 | 359 | div#tab-content-members fieldset legend, div#tab-content-memberships fieldset legend, div#tab-content-users fieldset legend { font-weight: bold; } |
|
351 | 360 | div#tab-content-members fieldset label, div#tab-content-memberships fieldset label, div#tab-content-users fieldset label { display: block; } |
|
352 | 361 | div#tab-content-members fieldset div, div#tab-content-users fieldset div { max-height: 400px; overflow:auto; } |
|
353 | 362 | |
|
354 | 363 | table.members td.group { padding-left: 20px; background: url(../images/users.png) no-repeat 0% 0%; } |
|
355 | 364 | |
|
356 | 365 | * html div#tab-content-members fieldset div { height: 450px; } |
|
357 | 366 | |
|
358 | 367 | /***** Flash & error messages ****/ |
|
359 | 368 | #errorExplanation, div.flash, .nodata, .warning { |
|
360 | 369 | padding: 4px 4px 4px 30px; |
|
361 | 370 | margin-bottom: 12px; |
|
362 | 371 | font-size: 1.1em; |
|
363 | 372 | border: 2px solid; |
|
364 | 373 | } |
|
365 | 374 | |
|
366 | 375 | div.flash {margin-top: 8px;} |
|
367 | 376 | |
|
368 | 377 | div.flash.error, #errorExplanation { |
|
369 | 378 | background: url(../images/false.png) 8px 5px no-repeat; |
|
370 | 379 | background-color: #ffe3e3; |
|
371 | 380 | border-color: #dd0000; |
|
372 | 381 | color: #550000; |
|
373 | 382 | } |
|
374 | 383 | |
|
375 | 384 | div.flash.notice { |
|
376 | 385 | background: url(../images/true.png) 8px 5px no-repeat; |
|
377 | 386 | background-color: #dfffdf; |
|
378 | 387 | border-color: #9fcf9f; |
|
379 | 388 | color: #005f00; |
|
380 | 389 | } |
|
381 | 390 | |
|
382 | 391 | div.flash.warning { |
|
383 | 392 | background: url(../images/warning.png) 8px 5px no-repeat; |
|
384 | 393 | background-color: #FFEBC1; |
|
385 | 394 | border-color: #FDBF3B; |
|
386 | 395 | color: #A6750C; |
|
387 | 396 | text-align: left; |
|
388 | 397 | } |
|
389 | 398 | |
|
390 | 399 | .nodata, .warning { |
|
391 | 400 | text-align: center; |
|
392 | 401 | background-color: #FFEBC1; |
|
393 | 402 | border-color: #FDBF3B; |
|
394 | 403 | color: #A6750C; |
|
395 | 404 | } |
|
396 | 405 | |
|
397 | 406 | #errorExplanation ul { font-size: 0.9em;} |
|
398 | 407 | #errorExplanation h2, #errorExplanation p { display: none; } |
|
399 | 408 | |
|
400 | 409 | /***** Ajax indicator ******/ |
|
401 | 410 | #ajax-indicator { |
|
402 | 411 | position: absolute; /* fixed not supported by IE */ |
|
403 | 412 | background-color:#eee; |
|
404 | 413 | border: 1px solid #bbb; |
|
405 | 414 | top:35%; |
|
406 | 415 | left:40%; |
|
407 | 416 | width:20%; |
|
408 | 417 | font-weight:bold; |
|
409 | 418 | text-align:center; |
|
410 | 419 | padding:0.6em; |
|
411 | 420 | z-index:100; |
|
412 | 421 | filter:alpha(opacity=50); |
|
413 | 422 | opacity: 0.5; |
|
414 | 423 | } |
|
415 | 424 | |
|
416 | 425 | html>body #ajax-indicator { position: fixed; } |
|
417 | 426 | |
|
418 | 427 | #ajax-indicator span { |
|
419 | 428 | background-position: 0% 40%; |
|
420 | 429 | background-repeat: no-repeat; |
|
421 | 430 | background-image: url(../images/loading.gif); |
|
422 | 431 | padding-left: 26px; |
|
423 | 432 | vertical-align: bottom; |
|
424 | 433 | } |
|
425 | 434 | |
|
426 | 435 | /***** Calendar *****/ |
|
427 | 436 | table.cal {border-collapse: collapse; width: 100%; margin: 0px 0 6px 0;border: 1px solid #d7d7d7;} |
|
428 | 437 | table.cal thead th {width: 14%;} |
|
429 | 438 | table.cal tbody tr {height: 100px;} |
|
430 | 439 | table.cal th { background-color:#EEEEEE; padding: 4px; } |
|
431 | 440 | table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;} |
|
432 | 441 | table.cal td p.day-num {font-size: 1.1em; text-align:right;} |
|
433 | 442 | table.cal td.odd p.day-num {color: #bbb;} |
|
434 | 443 | table.cal td.today {background:#ffffdd;} |
|
435 | 444 | table.cal td.today p.day-num {font-weight: bold;} |
|
436 | 445 | |
|
437 | 446 | /***** Tooltips ******/ |
|
438 | 447 | .tooltip{position:relative;z-index:24;} |
|
439 | 448 | .tooltip:hover{z-index:25;color:#000;} |
|
440 | 449 | .tooltip span.tip{display: none; text-align:left;} |
|
441 | 450 | |
|
442 | 451 | div.tooltip:hover span.tip{ |
|
443 | 452 | display:block; |
|
444 | 453 | position:absolute; |
|
445 | 454 | top:12px; left:24px; width:270px; |
|
446 | 455 | border:1px solid #555; |
|
447 | 456 | background-color:#fff; |
|
448 | 457 | padding: 4px; |
|
449 | 458 | font-size: 0.8em; |
|
450 | 459 | color:#505050; |
|
451 | 460 | } |
|
452 | 461 | |
|
453 | 462 | /***** Progress bar *****/ |
|
454 | 463 | table.progress { |
|
455 | 464 | border: 1px solid #D7D7D7; |
|
456 | 465 | border-collapse: collapse; |
|
457 | 466 | border-spacing: 0pt; |
|
458 | 467 | empty-cells: show; |
|
459 | 468 | text-align: center; |
|
460 | 469 | float:left; |
|
461 | 470 | margin: 1px 6px 1px 0px; |
|
462 | 471 | } |
|
463 | 472 | |
|
464 | 473 | table.progress td { height: 0.9em; } |
|
465 | 474 | table.progress td.closed { background: #BAE0BA none repeat scroll 0%; } |
|
466 | 475 | table.progress td.done { background: #DEF0DE none repeat scroll 0%; } |
|
467 | 476 | table.progress td.open { background: #FFF none repeat scroll 0%; } |
|
468 | 477 | p.pourcent {font-size: 80%;} |
|
469 | 478 | p.progress-info {clear: left; font-style: italic; font-size: 80%;} |
|
470 | 479 | |
|
471 | 480 | /***** Tabs *****/ |
|
472 | 481 | #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative;} |
|
473 | 482 | #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em;} |
|
474 | 483 | #content .tabs>ul { bottom:-1px; } /* others */ |
|
475 | 484 | #content .tabs ul li { |
|
476 | 485 | float:left; |
|
477 | 486 | list-style-type:none; |
|
478 | 487 | white-space:nowrap; |
|
479 | 488 | margin-right:8px; |
|
480 | 489 | background:#fff; |
|
481 | 490 | } |
|
482 | 491 | #content .tabs ul li a{ |
|
483 | 492 | display:block; |
|
484 | 493 | font-size: 0.9em; |
|
485 | 494 | text-decoration:none; |
|
486 | 495 | line-height:1.3em; |
|
487 | 496 | padding:4px 6px 4px 6px; |
|
488 | 497 | border: 1px solid #ccc; |
|
489 | 498 | border-bottom: 1px solid #bbbbbb; |
|
490 | 499 | background-color: #eeeeee; |
|
491 | 500 | color:#777; |
|
492 | 501 | font-weight:bold; |
|
493 | 502 | } |
|
494 | 503 | |
|
495 | 504 | #content .tabs ul li a:hover { |
|
496 | 505 | background-color: #ffffdd; |
|
497 | 506 | text-decoration:none; |
|
498 | 507 | } |
|
499 | 508 | |
|
500 | 509 | #content .tabs ul li a.selected { |
|
501 | 510 | background-color: #fff; |
|
502 | 511 | border: 1px solid #bbbbbb; |
|
503 | 512 | border-bottom: 1px solid #fff; |
|
504 | 513 | } |
|
505 | 514 | |
|
506 | 515 | #content .tabs ul li a.selected:hover { |
|
507 | 516 | background-color: #fff; |
|
508 | 517 | } |
|
509 | 518 | |
|
510 | 519 | /***** Auto-complete *****/ |
|
511 | 520 | div.autocomplete { |
|
512 | 521 | position:absolute; |
|
513 | 522 | width:250px; |
|
514 | 523 | background-color:white; |
|
515 | 524 | margin:0; |
|
516 | 525 | padding:0; |
|
517 | 526 | } |
|
518 | 527 | div.autocomplete ul { |
|
519 | 528 | list-style-type:none; |
|
520 | 529 | margin:0; |
|
521 | 530 | padding:0; |
|
522 | 531 | } |
|
523 | 532 | div.autocomplete ul li.selected { background-color: #ffb;} |
|
524 | 533 | div.autocomplete ul li { |
|
525 | 534 | list-style-type:none; |
|
526 | 535 | display:block; |
|
527 | 536 | margin:0; |
|
528 | 537 | padding:2px; |
|
529 | 538 | cursor:pointer; |
|
530 | 539 | font-size: 90%; |
|
531 | 540 | border-bottom: 1px solid #ccc; |
|
532 | 541 | border-left: 1px solid #ccc; |
|
533 | 542 | border-right: 1px solid #ccc; |
|
534 | 543 | } |
|
535 | 544 | div.autocomplete ul li span.informal { |
|
536 | 545 | font-size: 80%; |
|
537 | 546 | color: #aaa; |
|
538 | 547 | } |
|
539 | 548 | |
|
540 | 549 | /***** Diff *****/ |
|
541 | 550 | .diff_out { background: #fcc; } |
|
542 | 551 | .diff_in { background: #cfc; } |
|
543 | 552 | |
|
544 | 553 | /***** Wiki *****/ |
|
545 | 554 | div.wiki table { |
|
546 | 555 | border: 1px solid #505050; |
|
547 | 556 | border-collapse: collapse; |
|
548 | 557 | margin-bottom: 1em; |
|
549 | 558 | } |
|
550 | 559 | |
|
551 | 560 | div.wiki table, div.wiki td, div.wiki th { |
|
552 | 561 | border: 1px solid #bbb; |
|
553 | 562 | padding: 4px; |
|
554 | 563 | } |
|
555 | 564 | |
|
556 | 565 | div.wiki .external { |
|
557 | 566 | background-position: 0% 60%; |
|
558 | 567 | background-repeat: no-repeat; |
|
559 | 568 | padding-left: 12px; |
|
560 | 569 | background-image: url(../images/external.png); |
|
561 | 570 | } |
|
562 | 571 | |
|
563 | 572 | div.wiki a.new { |
|
564 | 573 | color: #b73535; |
|
565 | 574 | } |
|
566 | 575 | |
|
567 | 576 | div.wiki pre { |
|
568 | 577 | margin: 1em 1em 1em 1.6em; |
|
569 | 578 | padding: 2px; |
|
570 | 579 | background-color: #fafafa; |
|
571 | 580 | border: 1px solid #dadada; |
|
572 | 581 | width:95%; |
|
573 | 582 | overflow-x: auto; |
|
574 | 583 | } |
|
575 | 584 | |
|
576 | 585 | div.wiki ul.toc { |
|
577 | 586 | background-color: #ffffdd; |
|
578 | 587 | border: 1px solid #e4e4e4; |
|
579 | 588 | padding: 4px; |
|
580 | 589 | line-height: 1.2em; |
|
581 | 590 | margin-bottom: 12px; |
|
582 | 591 | margin-right: 12px; |
|
583 | 592 | margin-left: 0; |
|
584 | 593 | display: table |
|
585 | 594 | } |
|
586 | 595 | * html div.wiki ul.toc { width: 50%; } /* IE6 doesn't autosize div */ |
|
587 | 596 | |
|
588 | 597 | div.wiki ul.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; } |
|
589 | 598 | div.wiki ul.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; } |
|
590 | 599 | div.wiki ul.toc li { list-style-type:none;} |
|
591 | 600 | div.wiki ul.toc li.heading2 { margin-left: 6px; } |
|
592 | 601 | div.wiki ul.toc li.heading3 { margin-left: 12px; font-size: 0.8em; } |
|
593 | 602 | |
|
594 | 603 | div.wiki ul.toc a { |
|
595 | 604 | font-size: 0.9em; |
|
596 | 605 | font-weight: normal; |
|
597 | 606 | text-decoration: none; |
|
598 | 607 | color: #606060; |
|
599 | 608 | } |
|
600 | 609 | div.wiki ul.toc a:hover { color: #c61a1a; text-decoration: underline;} |
|
601 | 610 | |
|
602 | 611 | a.wiki-anchor { display: none; margin-left: 6px; text-decoration: none; } |
|
603 | 612 | a.wiki-anchor:hover { color: #aaa !important; text-decoration: none; } |
|
604 | 613 | h1:hover a.wiki-anchor, h2:hover a.wiki-anchor, h3:hover a.wiki-anchor { display: inline; color: #ddd; } |
|
605 | 614 | |
|
606 | 615 | /***** My page layout *****/ |
|
607 | 616 | .block-receiver { |
|
608 | 617 | border:1px dashed #c0c0c0; |
|
609 | 618 | margin-bottom: 20px; |
|
610 | 619 | padding: 15px 0 15px 0; |
|
611 | 620 | } |
|
612 | 621 | |
|
613 | 622 | .mypage-box { |
|
614 | 623 | margin:0 0 20px 0; |
|
615 | 624 | color:#505050; |
|
616 | 625 | line-height:1.5em; |
|
617 | 626 | } |
|
618 | 627 | |
|
619 | 628 | .handle { |
|
620 | 629 | cursor: move; |
|
621 | 630 | } |
|
622 | 631 | |
|
623 | 632 | a.close-icon { |
|
624 | 633 | display:block; |
|
625 | 634 | margin-top:3px; |
|
626 | 635 | overflow:hidden; |
|
627 | 636 | width:12px; |
|
628 | 637 | height:12px; |
|
629 | 638 | background-repeat: no-repeat; |
|
630 | 639 | cursor:pointer; |
|
631 | 640 | background-image:url('../images/close.png'); |
|
632 | 641 | } |
|
633 | 642 | |
|
634 | 643 | a.close-icon:hover { |
|
635 | 644 | background-image:url('../images/close_hl.png'); |
|
636 | 645 | } |
|
637 | 646 | |
|
638 | 647 | /***** Gantt chart *****/ |
|
639 | 648 | .gantt_hdr { |
|
640 | 649 | position:absolute; |
|
641 | 650 | top:0; |
|
642 | 651 | height:16px; |
|
643 | 652 | border-top: 1px solid #c0c0c0; |
|
644 | 653 | border-bottom: 1px solid #c0c0c0; |
|
645 | 654 | border-right: 1px solid #c0c0c0; |
|
646 | 655 | text-align: center; |
|
647 | 656 | overflow: hidden; |
|
648 | 657 | } |
|
649 | 658 | |
|
650 | 659 | .task { |
|
651 | 660 | position: absolute; |
|
652 | 661 | height:8px; |
|
653 | 662 | font-size:0.8em; |
|
654 | 663 | color:#888; |
|
655 | 664 | padding:0; |
|
656 | 665 | margin:0; |
|
657 | 666 | line-height:0.8em; |
|
658 | 667 | } |
|
659 | 668 | |
|
660 | 669 | .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; } |
|
661 | 670 | .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; } |
|
662 | 671 | .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; } |
|
663 | 672 | .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; } |
|
664 | 673 | |
|
665 | 674 | /***** Icons *****/ |
|
666 | 675 | .icon { |
|
667 | 676 | background-position: 0% 40%; |
|
668 | 677 | background-repeat: no-repeat; |
|
669 | 678 | padding-left: 20px; |
|
670 | 679 | padding-top: 2px; |
|
671 | 680 | padding-bottom: 3px; |
|
672 | 681 | } |
|
673 | 682 | |
|
674 | 683 | .icon22 { |
|
675 | 684 | background-position: 0% 40%; |
|
676 | 685 | background-repeat: no-repeat; |
|
677 | 686 | padding-left: 26px; |
|
678 | 687 | line-height: 22px; |
|
679 | 688 | vertical-align: middle; |
|
680 | 689 | } |
|
681 | 690 | |
|
682 | 691 | .icon-add { background-image: url(../images/add.png); } |
|
683 | 692 | .icon-edit { background-image: url(../images/edit.png); } |
|
684 | 693 | .icon-copy { background-image: url(../images/copy.png); } |
|
685 | 694 | .icon-del { background-image: url(../images/delete.png); } |
|
686 | 695 | .icon-move { background-image: url(../images/move.png); } |
|
687 | 696 | .icon-save { background-image: url(../images/save.png); } |
|
688 | 697 | .icon-cancel { background-image: url(../images/cancel.png); } |
|
689 | 698 | .icon-folder { background-image: url(../images/folder.png); } |
|
690 | 699 | .open .icon-folder { background-image: url(../images/folder_open.png); } |
|
691 | 700 | .icon-package { background-image: url(../images/package.png); } |
|
692 | 701 | .icon-home { background-image: url(../images/home.png); } |
|
693 | 702 | .icon-user { background-image: url(../images/user.png); } |
|
694 | 703 | .icon-mypage { background-image: url(../images/user_page.png); } |
|
695 | 704 | .icon-admin { background-image: url(../images/admin.png); } |
|
696 | 705 | .icon-projects { background-image: url(../images/projects.png); } |
|
697 | 706 | .icon-help { background-image: url(../images/help.png); } |
|
698 | 707 | .icon-attachment { background-image: url(../images/attachment.png); } |
|
699 | 708 | .icon-index { background-image: url(../images/index.png); } |
|
700 | 709 | .icon-history { background-image: url(../images/history.png); } |
|
701 | 710 | .icon-time { background-image: url(../images/time.png); } |
|
702 | 711 | .icon-time-add { background-image: url(../images/time_add.png); } |
|
703 | 712 | .icon-stats { background-image: url(../images/stats.png); } |
|
704 | 713 | .icon-warning { background-image: url(../images/warning.png); } |
|
705 | 714 | .icon-fav { background-image: url(../images/fav.png); } |
|
706 | 715 | .icon-fav-off { background-image: url(../images/fav_off.png); } |
|
707 | 716 | .icon-reload { background-image: url(../images/reload.png); } |
|
708 | 717 | .icon-lock { background-image: url(../images/locked.png); } |
|
709 | 718 | .icon-unlock { background-image: url(../images/unlock.png); } |
|
710 | 719 | .icon-checked { background-image: url(../images/true.png); } |
|
711 | 720 | .icon-details { background-image: url(../images/zoom_in.png); } |
|
712 | 721 | .icon-report { background-image: url(../images/report.png); } |
|
713 | 722 | .icon-comment { background-image: url(../images/comment.png); } |
|
714 | 723 | |
|
715 | 724 | .icon-file { background-image: url(../images/files/default.png); } |
|
716 | 725 | .icon-file.text-plain { background-image: url(../images/files/text.png); } |
|
717 | 726 | .icon-file.text-x-c { background-image: url(../images/files/c.png); } |
|
718 | 727 | .icon-file.text-x-csharp { background-image: url(../images/files/csharp.png); } |
|
719 | 728 | .icon-file.text-x-php { background-image: url(../images/files/php.png); } |
|
720 | 729 | .icon-file.text-x-ruby { background-image: url(../images/files/ruby.png); } |
|
721 | 730 | .icon-file.text-xml { background-image: url(../images/files/xml.png); } |
|
722 | 731 | .icon-file.image-gif { background-image: url(../images/files/image.png); } |
|
723 | 732 | .icon-file.image-jpeg { background-image: url(../images/files/image.png); } |
|
724 | 733 | .icon-file.image-png { background-image: url(../images/files/image.png); } |
|
725 | 734 | .icon-file.image-tiff { background-image: url(../images/files/image.png); } |
|
726 | 735 | .icon-file.application-pdf { background-image: url(../images/files/pdf.png); } |
|
727 | 736 | .icon-file.application-zip { background-image: url(../images/files/zip.png); } |
|
728 | 737 | .icon-file.application-x-gzip { background-image: url(../images/files/zip.png); } |
|
729 | 738 | |
|
730 | 739 | .icon22-projects { background-image: url(../images/22x22/projects.png); } |
|
731 | 740 | .icon22-users { background-image: url(../images/22x22/users.png); } |
|
732 | 741 | .icon22-groups { background-image: url(../images/22x22/groups.png); } |
|
733 | 742 | .icon22-tracker { background-image: url(../images/22x22/tracker.png); } |
|
734 | 743 | .icon22-role { background-image: url(../images/22x22/role.png); } |
|
735 | 744 | .icon22-workflow { background-image: url(../images/22x22/workflow.png); } |
|
736 | 745 | .icon22-options { background-image: url(../images/22x22/options.png); } |
|
737 | 746 | .icon22-notifications { background-image: url(../images/22x22/notifications.png); } |
|
738 | 747 | .icon22-authent { background-image: url(../images/22x22/authent.png); } |
|
739 | 748 | .icon22-info { background-image: url(../images/22x22/info.png); } |
|
740 | 749 | .icon22-comment { background-image: url(../images/22x22/comment.png); } |
|
741 | 750 | .icon22-package { background-image: url(../images/22x22/package.png); } |
|
742 | 751 | .icon22-settings { background-image: url(../images/22x22/settings.png); } |
|
743 | 752 | .icon22-plugin { background-image: url(../images/22x22/plugin.png); } |
|
744 | 753 | |
|
745 | 754 | img.gravatar { |
|
746 | 755 | padding: 2px; |
|
747 | 756 | border: solid 1px #d5d5d5; |
|
748 | 757 | background: #fff; |
|
749 | 758 | } |
|
750 | 759 | |
|
751 | 760 | div.issue img.gravatar { |
|
752 | 761 | float: right; |
|
753 | 762 | margin: 0 0 0 1em; |
|
754 | 763 | padding: 5px; |
|
755 | 764 | } |
|
756 | 765 | |
|
757 | 766 | div.issue table img.gravatar { |
|
758 | 767 | height: 14px; |
|
759 | 768 | width: 14px; |
|
760 | 769 | padding: 2px; |
|
761 | 770 | float: left; |
|
762 | 771 | margin: 0 0.5em 0 0; |
|
763 | 772 | } |
|
764 | 773 | |
|
765 | 774 | #history img.gravatar { |
|
766 | 775 | padding: 3px; |
|
767 | 776 | margin: 0 1.5em 1em 0; |
|
768 | 777 | float: left; |
|
769 | 778 | } |
|
770 | 779 | |
|
771 | 780 | td.username img.gravatar { |
|
772 | 781 | float: left; |
|
773 | 782 | margin: 0 1em 0 0; |
|
774 | 783 | } |
|
775 | 784 | |
|
776 | 785 | #activity dt img.gravatar { |
|
777 | 786 | float: left; |
|
778 | 787 | margin: 0 1em 1em 0; |
|
779 | 788 | } |
|
780 | 789 | |
|
781 | 790 | #activity dt, |
|
782 | 791 | .journal { |
|
783 | 792 | clear: left; |
|
784 | 793 | } |
|
785 | 794 | |
|
786 | 795 | .gravatar-margin { |
|
787 | 796 | margin-left: 40px; |
|
788 | 797 | } |
|
789 | 798 | |
|
790 | 799 | h2 img { vertical-align:middle; } |
|
791 | 800 | |
|
792 | 801 | |
|
793 | 802 | /***** Media print specific styles *****/ |
|
794 | 803 | @media print { |
|
795 | 804 | #top-menu, #header, #main-menu, #sidebar, #footer, .contextual, .other-formats { display:none; } |
|
796 | 805 | #main { background: #fff; } |
|
797 | 806 | #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; overflow: visible !important;} |
|
798 | 807 | #wiki_add_attachment { display:none; } |
|
799 | 808 | } |
General Comments 0
You need to be logged in to leave comments.
Login now