@@ -1,636 +1,628 | |||
|
1 | 1 | # redMine - project management software |
|
2 | 2 | # Copyright (C) 2006-2007 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 | require 'csv' |
|
19 | 19 | |
|
20 | 20 | class ProjectsController < ApplicationController |
|
21 | 21 | layout 'base' |
|
22 | 22 | before_filter :find_project, :except => [ :index, :list, :add ] |
|
23 | 23 | before_filter :authorize, :except => [ :index, :list, :add, :archive, :unarchive, :destroy ] |
|
24 | 24 | before_filter :require_admin, :only => [ :add, :archive, :unarchive, :destroy ] |
|
25 | 25 | accept_key_auth :activity, :calendar |
|
26 | 26 | |
|
27 | 27 | cache_sweeper :project_sweeper, :only => [ :add, :edit, :archive, :unarchive, :destroy ] |
|
28 | 28 | cache_sweeper :issue_sweeper, :only => [ :add_issue ] |
|
29 | 29 | cache_sweeper :version_sweeper, :only => [ :add_version ] |
|
30 | 30 | |
|
31 | 31 | helper :sort |
|
32 | 32 | include SortHelper |
|
33 | 33 | helper :custom_fields |
|
34 | 34 | include CustomFieldsHelper |
|
35 | 35 | helper :ifpdf |
|
36 | 36 | include IfpdfHelper |
|
37 | 37 | helper IssuesHelper |
|
38 | 38 | helper :queries |
|
39 | 39 | include QueriesHelper |
|
40 | 40 | helper :repositories |
|
41 | 41 | include RepositoriesHelper |
|
42 | 42 | include ProjectsHelper |
|
43 | 43 | |
|
44 | 44 | def index |
|
45 | 45 | list |
|
46 | 46 | render :action => 'list' unless request.xhr? |
|
47 | 47 | end |
|
48 | 48 | |
|
49 |
# Lists |
|
|
49 | # Lists visible projects | |
|
50 | 50 | def list |
|
51 | sort_init "#{Project.table_name}.name", "asc" | |
|
52 | sort_update | |
|
53 | @project_count = Project.count(:all, :conditions => Project.visible_by(logged_in_user)) | |
|
54 | @project_pages = Paginator.new self, @project_count, | |
|
55 | 15, | |
|
56 | params['page'] | |
|
57 | @projects = Project.find :all, :order => sort_clause, | |
|
58 | :conditions => Project.visible_by(logged_in_user), | |
|
59 | :include => :parent, | |
|
60 | :limit => @project_pages.items_per_page, | |
|
61 | :offset => @project_pages.current.offset | |
|
62 | ||
|
63 | render :action => "list", :layout => false if request.xhr? | |
|
51 | projects = Project.find :all, | |
|
52 | :conditions => Project.visible_by(logged_in_user), | |
|
53 | :include => :parent | |
|
54 | @project_tree = projects.group_by {|p| p.parent || p} | |
|
55 | @project_tree.each_key {|p| @project_tree[p] -= [p]} | |
|
64 | 56 | end |
|
65 | ||
|
57 | ||
|
66 | 58 | # Add a new project |
|
67 | 59 | def add |
|
68 | 60 | @custom_fields = IssueCustomField.find(:all) |
|
69 | 61 | @root_projects = Project.find(:all, :conditions => "parent_id IS NULL AND status = #{Project::STATUS_ACTIVE}") |
|
70 | 62 | @project = Project.new(params[:project]) |
|
71 | 63 | if request.get? |
|
72 | 64 | @custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project) } |
|
73 | 65 | else |
|
74 | 66 | @project.custom_fields = CustomField.find(params[:custom_field_ids]) if params[:custom_field_ids] |
|
75 | 67 | @custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => (params[:custom_fields] ? params["custom_fields"][x.id.to_s] : nil)) } |
|
76 | 68 | @project.custom_values = @custom_values |
|
77 | 69 | if @project.save |
|
78 | 70 | @project.enabled_module_names = params[:enabled_modules] |
|
79 | 71 | flash[:notice] = l(:notice_successful_create) |
|
80 | 72 | redirect_to :controller => 'admin', :action => 'projects' |
|
81 | 73 | end |
|
82 | 74 | end |
|
83 | 75 | end |
|
84 | 76 | |
|
85 | 77 | # Show @project |
|
86 | 78 | def show |
|
87 | 79 | @custom_values = @project.custom_values.find(:all, :include => :custom_field) |
|
88 | 80 | @members_by_role = @project.members.find(:all, :include => [:user, :role], :order => 'position').group_by {|m| m.role} |
|
89 | 81 | @subprojects = @project.active_children |
|
90 | 82 | @news = @project.news.find(:all, :limit => 5, :include => [ :author, :project ], :order => "#{News.table_name}.created_on DESC") |
|
91 | 83 | @trackers = Tracker.find(:all, :order => 'position') |
|
92 | 84 | @open_issues_by_tracker = Issue.count(:group => :tracker, :joins => "INNER JOIN #{IssueStatus.table_name} ON #{IssueStatus.table_name}.id = #{Issue.table_name}.status_id", :conditions => ["project_id=? and #{IssueStatus.table_name}.is_closed=?", @project.id, false]) |
|
93 | 85 | @total_issues_by_tracker = Issue.count(:group => :tracker, :conditions => ["project_id=?", @project.id]) |
|
94 | 86 | @key = User.current.rss_key |
|
95 | 87 | end |
|
96 | 88 | |
|
97 | 89 | def settings |
|
98 | 90 | @root_projects = Project::find(:all, :conditions => ["parent_id IS NULL AND status = #{Project::STATUS_ACTIVE} AND id <> ?", @project.id]) |
|
99 | 91 | @custom_fields = IssueCustomField.find(:all) |
|
100 | 92 | @issue_category ||= IssueCategory.new |
|
101 | 93 | @member ||= @project.members.new |
|
102 | 94 | @custom_values ||= ProjectCustomField.find(:all).collect { |x| @project.custom_values.find_by_custom_field_id(x.id) || CustomValue.new(:custom_field => x) } |
|
103 | 95 | @repository ||= @project.repository |
|
104 | 96 | @wiki ||= @project.wiki |
|
105 | 97 | end |
|
106 | 98 | |
|
107 | 99 | # Edit @project |
|
108 | 100 | def edit |
|
109 | 101 | if request.post? |
|
110 | 102 | @project.custom_fields = IssueCustomField.find(params[:custom_field_ids]) if params[:custom_field_ids] |
|
111 | 103 | if params[:custom_fields] |
|
112 | 104 | @custom_values = ProjectCustomField.find(:all).collect { |x| CustomValue.new(:custom_field => x, :customized => @project, :value => params["custom_fields"][x.id.to_s]) } |
|
113 | 105 | @project.custom_values = @custom_values |
|
114 | 106 | end |
|
115 | 107 | @project.attributes = params[:project] |
|
116 | 108 | if @project.save |
|
117 | 109 | flash[:notice] = l(:notice_successful_update) |
|
118 | 110 | redirect_to :action => 'settings', :id => @project |
|
119 | 111 | else |
|
120 | 112 | settings |
|
121 | 113 | render :action => 'settings' |
|
122 | 114 | end |
|
123 | 115 | end |
|
124 | 116 | end |
|
125 | 117 | |
|
126 | 118 | def modules |
|
127 | 119 | @project.enabled_module_names = params[:enabled_modules] |
|
128 | 120 | redirect_to :action => 'settings', :id => @project, :tab => 'modules' |
|
129 | 121 | end |
|
130 | 122 | |
|
131 | 123 | def archive |
|
132 | 124 | @project.archive if request.post? && @project.active? |
|
133 | 125 | redirect_to :controller => 'admin', :action => 'projects' |
|
134 | 126 | end |
|
135 | 127 | |
|
136 | 128 | def unarchive |
|
137 | 129 | @project.unarchive if request.post? && !@project.active? |
|
138 | 130 | redirect_to :controller => 'admin', :action => 'projects' |
|
139 | 131 | end |
|
140 | 132 | |
|
141 | 133 | # Delete @project |
|
142 | 134 | def destroy |
|
143 | 135 | @project_to_destroy = @project |
|
144 | 136 | if request.post? and params[:confirm] |
|
145 | 137 | @project_to_destroy.destroy |
|
146 | 138 | redirect_to :controller => 'admin', :action => 'projects' |
|
147 | 139 | end |
|
148 | 140 | # hide project in layout |
|
149 | 141 | @project = nil |
|
150 | 142 | end |
|
151 | 143 | |
|
152 | 144 | # Add a new issue category to @project |
|
153 | 145 | def add_issue_category |
|
154 | 146 | @category = @project.issue_categories.build(params[:category]) |
|
155 | 147 | if request.post? and @category.save |
|
156 | 148 | respond_to do |format| |
|
157 | 149 | format.html do |
|
158 | 150 | flash[:notice] = l(:notice_successful_create) |
|
159 | 151 | redirect_to :action => 'settings', :tab => 'categories', :id => @project |
|
160 | 152 | end |
|
161 | 153 | format.js do |
|
162 | 154 | # IE doesn't support the replace_html rjs method for select box options |
|
163 | 155 | render(:update) {|page| page.replace "issue_category_id", |
|
164 | 156 | 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]') |
|
165 | 157 | } |
|
166 | 158 | end |
|
167 | 159 | end |
|
168 | 160 | end |
|
169 | 161 | end |
|
170 | 162 | |
|
171 | 163 | # Add a new version to @project |
|
172 | 164 | def add_version |
|
173 | 165 | @version = @project.versions.build(params[:version]) |
|
174 | 166 | if request.post? and @version.save |
|
175 | 167 | flash[:notice] = l(:notice_successful_create) |
|
176 | 168 | redirect_to :action => 'settings', :tab => 'versions', :id => @project |
|
177 | 169 | end |
|
178 | 170 | end |
|
179 | 171 | |
|
180 | 172 | # Add a new document to @project |
|
181 | 173 | def add_document |
|
182 | 174 | @categories = Enumeration::get_values('DCAT') |
|
183 | 175 | @document = @project.documents.build(params[:document]) |
|
184 | 176 | if request.post? and @document.save |
|
185 | 177 | # Save the attachments |
|
186 | 178 | params[:attachments].each { |a| |
|
187 | 179 | Attachment.create(:container => @document, :file => a, :author => logged_in_user) unless a.size == 0 |
|
188 | 180 | } if params[:attachments] and params[:attachments].is_a? Array |
|
189 | 181 | flash[:notice] = l(:notice_successful_create) |
|
190 | 182 | Mailer.deliver_document_add(@document) if Setting.notified_events.include?('document_added') |
|
191 | 183 | redirect_to :action => 'list_documents', :id => @project |
|
192 | 184 | end |
|
193 | 185 | end |
|
194 | 186 | |
|
195 | 187 | # Show documents list of @project |
|
196 | 188 | def list_documents |
|
197 | 189 | @documents = @project.documents.find :all, :include => :category |
|
198 | 190 | end |
|
199 | 191 | |
|
200 | 192 | # Add a new issue to @project |
|
201 | 193 | def add_issue |
|
202 | 194 | @tracker = Tracker.find(params[:tracker_id]) |
|
203 | 195 | @priorities = Enumeration::get_values('IPRI') |
|
204 | 196 | |
|
205 | 197 | default_status = IssueStatus.default |
|
206 | 198 | unless default_status |
|
207 | 199 | flash.now[:error] = 'No default issue status defined. Please check your configuration.' |
|
208 | 200 | render :nothing => true, :layout => true |
|
209 | 201 | return |
|
210 | 202 | end |
|
211 | 203 | @issue = Issue.new(:project => @project, :tracker => @tracker) |
|
212 | 204 | @issue.status = default_status |
|
213 | 205 | @allowed_statuses = ([default_status] + default_status.find_new_statuses_allowed_to(logged_in_user.role_for_project(@project), @issue.tracker))if logged_in_user |
|
214 | 206 | if request.get? |
|
215 | 207 | @issue.start_date = Date.today |
|
216 | 208 | @custom_values = @project.custom_fields_for_issues(@tracker).collect { |x| CustomValue.new(:custom_field => x, :customized => @issue) } |
|
217 | 209 | else |
|
218 | 210 | @issue.attributes = params[:issue] |
|
219 | 211 | |
|
220 | 212 | requested_status = IssueStatus.find_by_id(params[:issue][:status_id]) |
|
221 | 213 | @issue.status = (@allowed_statuses.include? requested_status) ? requested_status : default_status |
|
222 | 214 | |
|
223 | 215 | @issue.author_id = self.logged_in_user.id if self.logged_in_user |
|
224 | 216 | # Multiple file upload |
|
225 | 217 | @attachments = [] |
|
226 | 218 | params[:attachments].each { |a| |
|
227 | 219 | @attachments << Attachment.new(:container => @issue, :file => a, :author => logged_in_user) unless a.size == 0 |
|
228 | 220 | } if params[:attachments] and params[:attachments].is_a? Array |
|
229 | 221 | @custom_values = @project.custom_fields_for_issues(@tracker).collect { |x| CustomValue.new(:custom_field => x, :customized => @issue, :value => params["custom_fields"][x.id.to_s]) } |
|
230 | 222 | @issue.custom_values = @custom_values |
|
231 | 223 | if @issue.save |
|
232 | 224 | @attachments.each(&:save) |
|
233 | 225 | flash[:notice] = l(:notice_successful_create) |
|
234 | 226 | Mailer.deliver_issue_add(@issue) if Setting.notified_events.include?('issue_added') |
|
235 | 227 | redirect_to :action => 'list_issues', :id => @project |
|
236 | 228 | end |
|
237 | 229 | end |
|
238 | 230 | end |
|
239 | 231 | |
|
240 | 232 | # Show filtered/sorted issues list of @project |
|
241 | 233 | def list_issues |
|
242 | 234 | sort_init "#{Issue.table_name}.id", "desc" |
|
243 | 235 | sort_update |
|
244 | 236 | |
|
245 | 237 | retrieve_query |
|
246 | 238 | |
|
247 | 239 | @results_per_page_options = [ 15, 25, 50, 100 ] |
|
248 | 240 | if params[:per_page] and @results_per_page_options.include? params[:per_page].to_i |
|
249 | 241 | @results_per_page = params[:per_page].to_i |
|
250 | 242 | session[:results_per_page] = @results_per_page |
|
251 | 243 | else |
|
252 | 244 | @results_per_page = session[:results_per_page] || 25 |
|
253 | 245 | end |
|
254 | 246 | |
|
255 | 247 | if @query.valid? |
|
256 | 248 | @issue_count = Issue.count(:include => [:status, :project], :conditions => @query.statement) |
|
257 | 249 | @issue_pages = Paginator.new self, @issue_count, @results_per_page, params['page'] |
|
258 | 250 | @issues = Issue.find :all, :order => sort_clause, |
|
259 | 251 | :include => [ :assigned_to, :status, :tracker, :project, :priority ], |
|
260 | 252 | :conditions => @query.statement, |
|
261 | 253 | :limit => @issue_pages.items_per_page, |
|
262 | 254 | :offset => @issue_pages.current.offset |
|
263 | 255 | end |
|
264 | 256 | render :layout => false if request.xhr? |
|
265 | 257 | end |
|
266 | 258 | |
|
267 | 259 | # Export filtered/sorted issues list to CSV |
|
268 | 260 | def export_issues_csv |
|
269 | 261 | sort_init "#{Issue.table_name}.id", "desc" |
|
270 | 262 | sort_update |
|
271 | 263 | |
|
272 | 264 | retrieve_query |
|
273 | 265 | render :action => 'list_issues' and return unless @query.valid? |
|
274 | 266 | |
|
275 | 267 | @issues = Issue.find :all, :order => sort_clause, |
|
276 | 268 | :include => [ :assigned_to, :author, :status, :tracker, :priority, :project, {:custom_values => :custom_field} ], |
|
277 | 269 | :conditions => @query.statement, |
|
278 | 270 | :limit => Setting.issues_export_limit.to_i |
|
279 | 271 | |
|
280 | 272 | ic = Iconv.new(l(:general_csv_encoding), 'UTF-8') |
|
281 | 273 | export = StringIO.new |
|
282 | 274 | CSV::Writer.generate(export, l(:general_csv_separator)) do |csv| |
|
283 | 275 | # csv header fields |
|
284 | 276 | headers = [ "#", l(:field_status), |
|
285 | 277 | l(:field_project), |
|
286 | 278 | l(:field_tracker), |
|
287 | 279 | l(:field_priority), |
|
288 | 280 | l(:field_subject), |
|
289 | 281 | l(:field_assigned_to), |
|
290 | 282 | l(:field_author), |
|
291 | 283 | l(:field_start_date), |
|
292 | 284 | l(:field_due_date), |
|
293 | 285 | l(:field_done_ratio), |
|
294 | 286 | l(:field_created_on), |
|
295 | 287 | l(:field_updated_on) |
|
296 | 288 | ] |
|
297 | 289 | for custom_field in @project.all_custom_fields |
|
298 | 290 | headers << custom_field.name |
|
299 | 291 | end |
|
300 | 292 | csv << headers.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } |
|
301 | 293 | # csv lines |
|
302 | 294 | @issues.each do |issue| |
|
303 | 295 | fields = [issue.id, issue.status.name, |
|
304 | 296 | issue.project.name, |
|
305 | 297 | issue.tracker.name, |
|
306 | 298 | issue.priority.name, |
|
307 | 299 | issue.subject, |
|
308 | 300 | (issue.assigned_to ? issue.assigned_to.name : ""), |
|
309 | 301 | issue.author.name, |
|
310 | 302 | issue.start_date ? l_date(issue.start_date) : nil, |
|
311 | 303 | issue.due_date ? l_date(issue.due_date) : nil, |
|
312 | 304 | issue.done_ratio, |
|
313 | 305 | l_datetime(issue.created_on), |
|
314 | 306 | l_datetime(issue.updated_on) |
|
315 | 307 | ] |
|
316 | 308 | for custom_field in @project.all_custom_fields |
|
317 | 309 | fields << (show_value issue.custom_value_for(custom_field)) |
|
318 | 310 | end |
|
319 | 311 | csv << fields.collect {|c| begin; ic.iconv(c.to_s); rescue; c.to_s; end } |
|
320 | 312 | end |
|
321 | 313 | end |
|
322 | 314 | export.rewind |
|
323 | 315 | send_data(export.read, :type => 'text/csv; header=present', :filename => 'export.csv') |
|
324 | 316 | end |
|
325 | 317 | |
|
326 | 318 | # Export filtered/sorted issues to PDF |
|
327 | 319 | def export_issues_pdf |
|
328 | 320 | sort_init "#{Issue.table_name}.id", "desc" |
|
329 | 321 | sort_update |
|
330 | 322 | |
|
331 | 323 | retrieve_query |
|
332 | 324 | render :action => 'list_issues' and return unless @query.valid? |
|
333 | 325 | |
|
334 | 326 | @issues = Issue.find :all, :order => sort_clause, |
|
335 | 327 | :include => [ :author, :status, :tracker, :priority, :project ], |
|
336 | 328 | :conditions => @query.statement, |
|
337 | 329 | :limit => Setting.issues_export_limit.to_i |
|
338 | 330 | |
|
339 | 331 | @options_for_rfpdf ||= {} |
|
340 | 332 | @options_for_rfpdf[:file_name] = "export.pdf" |
|
341 | 333 | render :layout => false |
|
342 | 334 | end |
|
343 | 335 | |
|
344 | 336 | def move_issues |
|
345 | 337 | @issues = @project.issues.find(params[:issue_ids]) if params[:issue_ids] |
|
346 | 338 | redirect_to :action => 'list_issues', :id => @project and return unless @issues |
|
347 | 339 | @projects = [] |
|
348 | 340 | # find projects to which the user is allowed to move the issue |
|
349 | 341 | User.current.memberships.each {|m| @projects << m.project if m.role.allowed_to?(:controller => 'projects', :action => 'move_issues')} |
|
350 | 342 | # issue can be moved to any tracker |
|
351 | 343 | @trackers = Tracker.find(:all) |
|
352 | 344 | if request.post? and params[:new_project_id] and params[:new_tracker_id] |
|
353 | 345 | new_project = Project.find_by_id(params[:new_project_id]) |
|
354 | 346 | new_tracker = Tracker.find_by_id(params[:new_tracker_id]) |
|
355 | 347 | @issues.each do |i| |
|
356 | 348 | if new_project && i.project_id != new_project.id |
|
357 | 349 | # issue is moved to another project |
|
358 | 350 | i.category = nil |
|
359 | 351 | i.fixed_version = nil |
|
360 | 352 | # delete issue relations |
|
361 | 353 | i.relations_from.clear |
|
362 | 354 | i.relations_to.clear |
|
363 | 355 | i.project = new_project |
|
364 | 356 | end |
|
365 | 357 | if new_tracker |
|
366 | 358 | i.tracker = new_tracker |
|
367 | 359 | end |
|
368 | 360 | i.save |
|
369 | 361 | end |
|
370 | 362 | flash[:notice] = l(:notice_successful_update) |
|
371 | 363 | redirect_to :action => 'list_issues', :id => @project |
|
372 | 364 | end |
|
373 | 365 | end |
|
374 | 366 | |
|
375 | 367 | # Add a news to @project |
|
376 | 368 | def add_news |
|
377 | 369 | @news = News.new(:project => @project) |
|
378 | 370 | if request.post? |
|
379 | 371 | @news.attributes = params[:news] |
|
380 | 372 | @news.author_id = self.logged_in_user.id if self.logged_in_user |
|
381 | 373 | if @news.save |
|
382 | 374 | flash[:notice] = l(:notice_successful_create) |
|
383 | 375 | Mailer.deliver_news_added(@news) if Setting.notified_events.include?('news_added') |
|
384 | 376 | redirect_to :action => 'list_news', :id => @project |
|
385 | 377 | end |
|
386 | 378 | end |
|
387 | 379 | end |
|
388 | 380 | |
|
389 | 381 | # Show news list of @project |
|
390 | 382 | def list_news |
|
391 | 383 | @news_pages, @news = paginate :news, :per_page => 10, :conditions => ["project_id=?", @project.id], :include => :author, :order => "#{News.table_name}.created_on DESC" |
|
392 | 384 | |
|
393 | 385 | respond_to do |format| |
|
394 | 386 | format.html { render :layout => false if request.xhr? } |
|
395 | 387 | format.atom { render_feed(@news, :title => "#{@project.name}: #{l(:label_news_plural)}") } |
|
396 | 388 | end |
|
397 | 389 | end |
|
398 | 390 | |
|
399 | 391 | def add_file |
|
400 | 392 | if request.post? |
|
401 | 393 | @version = @project.versions.find_by_id(params[:version_id]) |
|
402 | 394 | # Save the attachments |
|
403 | 395 | @attachments = [] |
|
404 | 396 | params[:attachments].each { |file| |
|
405 | 397 | next unless file.size > 0 |
|
406 | 398 | a = Attachment.create(:container => @version, :file => file, :author => logged_in_user) |
|
407 | 399 | @attachments << a unless a.new_record? |
|
408 | 400 | } if params[:attachments] and params[:attachments].is_a? Array |
|
409 | 401 | Mailer.deliver_attachments_add(@attachments) if !@attachments.empty? && Setting.notified_events.include?('file_added') |
|
410 | 402 | redirect_to :controller => 'projects', :action => 'list_files', :id => @project |
|
411 | 403 | end |
|
412 | 404 | @versions = @project.versions.sort |
|
413 | 405 | end |
|
414 | 406 | |
|
415 | 407 | def list_files |
|
416 | 408 | @versions = @project.versions.sort |
|
417 | 409 | end |
|
418 | 410 | |
|
419 | 411 | # Show changelog for @project |
|
420 | 412 | def changelog |
|
421 | 413 | @trackers = Tracker.find(:all, :conditions => ["is_in_chlog=?", true], :order => 'position') |
|
422 | 414 | retrieve_selected_tracker_ids(@trackers) |
|
423 | 415 | @versions = @project.versions.sort |
|
424 | 416 | end |
|
425 | 417 | |
|
426 | 418 | def roadmap |
|
427 | 419 | @trackers = Tracker.find(:all, :conditions => ["is_in_roadmap=?", true], :order => 'position') |
|
428 | 420 | retrieve_selected_tracker_ids(@trackers) |
|
429 | 421 | @versions = @project.versions.sort |
|
430 | 422 | @versions = @versions.select {|v| !v.completed? } unless params[:completed] |
|
431 | 423 | end |
|
432 | 424 | |
|
433 | 425 | def activity |
|
434 | 426 | if params[:year] and params[:year].to_i > 1900 |
|
435 | 427 | @year = params[:year].to_i |
|
436 | 428 | if params[:month] and params[:month].to_i > 0 and params[:month].to_i < 13 |
|
437 | 429 | @month = params[:month].to_i |
|
438 | 430 | end |
|
439 | 431 | end |
|
440 | 432 | @year ||= Date.today.year |
|
441 | 433 | @month ||= Date.today.month |
|
442 | 434 | |
|
443 | 435 | case params[:format] |
|
444 | 436 | when 'rss' |
|
445 | 437 | # 30 last days |
|
446 | 438 | @date_from = Date.today - 30 |
|
447 | 439 | @date_to = Date.today + 1 |
|
448 | 440 | else |
|
449 | 441 | # current month |
|
450 | 442 | @date_from = Date.civil(@year, @month, 1) |
|
451 | 443 | @date_to = @date_from >> 1 |
|
452 | 444 | end |
|
453 | 445 | |
|
454 | 446 | @event_types = %w(issues news attachments documents wiki_edits revisions) |
|
455 | 447 | @event_types.delete('wiki_edits') unless @project.wiki |
|
456 | 448 | @event_types.delete('changesets') unless @project.repository |
|
457 | 449 | |
|
458 | 450 | @scope = @event_types.select {|t| params["show_#{t}"]} |
|
459 | 451 | # default events if none is specified in parameters |
|
460 | 452 | @scope = (@event_types - %w(wiki_edits))if @scope.empty? |
|
461 | 453 | |
|
462 | 454 | @events = [] |
|
463 | 455 | |
|
464 | 456 | if @scope.include?('issues') |
|
465 | 457 | @events += @project.issues.find(:all, :include => [:author, :tracker], :conditions => ["#{Issue.table_name}.created_on>=? and #{Issue.table_name}.created_on<=?", @date_from, @date_to] ) |
|
466 | 458 | end |
|
467 | 459 | |
|
468 | 460 | if @scope.include?('news') |
|
469 | 461 | @events += @project.news.find(:all, :conditions => ["#{News.table_name}.created_on>=? and #{News.table_name}.created_on<=?", @date_from, @date_to], :include => :author ) |
|
470 | 462 | end |
|
471 | 463 | |
|
472 | 464 | if @scope.include?('attachments') |
|
473 | 465 | @events += Attachment.find(:all, :select => "#{Attachment.table_name}.*", :joins => "LEFT JOIN #{Version.table_name} ON #{Version.table_name}.id = #{Attachment.table_name}.container_id", :conditions => ["#{Attachment.table_name}.container_type='Version' and #{Version.table_name}.project_id=? and #{Attachment.table_name}.created_on>=? and #{Attachment.table_name}.created_on<=?", @project.id, @date_from, @date_to], :include => :author ) |
|
474 | 466 | end |
|
475 | 467 | |
|
476 | 468 | if @scope.include?('documents') |
|
477 | 469 | @events += @project.documents.find(:all, :conditions => ["#{Document.table_name}.created_on>=? and #{Document.table_name}.created_on<=?", @date_from, @date_to] ) |
|
478 | 470 | @events += Attachment.find(:all, :select => "attachments.*", :joins => "LEFT JOIN #{Document.table_name} ON #{Document.table_name}.id = #{Attachment.table_name}.container_id", :conditions => ["#{Attachment.table_name}.container_type='Document' and #{Document.table_name}.project_id=? and #{Attachment.table_name}.created_on>=? and #{Attachment.table_name}.created_on<=?", @project.id, @date_from, @date_to], :include => :author ) |
|
479 | 471 | end |
|
480 | 472 | |
|
481 | 473 | if @scope.include?('wiki_edits') && @project.wiki |
|
482 | 474 | select = "#{WikiContent.versioned_table_name}.updated_on, #{WikiContent.versioned_table_name}.comments, " + |
|
483 | 475 | "#{WikiContent.versioned_table_name}.#{WikiContent.version_column}, #{WikiPage.table_name}.title, " + |
|
484 | 476 | "#{WikiContent.versioned_table_name}.page_id, #{WikiContent.versioned_table_name}.author_id, " + |
|
485 | 477 | "#{WikiContent.versioned_table_name}.id" |
|
486 | 478 | joins = "LEFT JOIN #{WikiPage.table_name} ON #{WikiPage.table_name}.id = #{WikiContent.versioned_table_name}.page_id " + |
|
487 | 479 | "LEFT JOIN #{Wiki.table_name} ON #{Wiki.table_name}.id = #{WikiPage.table_name}.wiki_id " |
|
488 | 480 | conditions = ["#{Wiki.table_name}.project_id = ? AND #{WikiContent.versioned_table_name}.updated_on BETWEEN ? AND ?", |
|
489 | 481 | @project.id, @date_from, @date_to] |
|
490 | 482 | |
|
491 | 483 | @events += WikiContent.versioned_class.find(:all, :select => select, :joins => joins, :conditions => conditions) |
|
492 | 484 | end |
|
493 | 485 | |
|
494 | 486 | if @scope.include?('revisions') && @project.repository |
|
495 | 487 | @events += @project.repository.changesets.find(:all, :conditions => ["#{Changeset.table_name}.committed_on BETWEEN ? AND ?", @date_from, @date_to]) |
|
496 | 488 | end |
|
497 | 489 | |
|
498 | 490 | @events_by_day = @events.group_by(&:event_date) |
|
499 | 491 | |
|
500 | 492 | respond_to do |format| |
|
501 | 493 | format.html { render :layout => false if request.xhr? } |
|
502 | 494 | format.atom { render_feed(@events, :title => "#{@project.name}: #{l(:label_activity)}") } |
|
503 | 495 | end |
|
504 | 496 | end |
|
505 | 497 | |
|
506 | 498 | def calendar |
|
507 | 499 | @trackers = Tracker.find(:all, :order => 'position') |
|
508 | 500 | retrieve_selected_tracker_ids(@trackers) |
|
509 | 501 | |
|
510 | 502 | if params[:year] and params[:year].to_i > 1900 |
|
511 | 503 | @year = params[:year].to_i |
|
512 | 504 | if params[:month] and params[:month].to_i > 0 and params[:month].to_i < 13 |
|
513 | 505 | @month = params[:month].to_i |
|
514 | 506 | end |
|
515 | 507 | end |
|
516 | 508 | @year ||= Date.today.year |
|
517 | 509 | @month ||= Date.today.month |
|
518 | 510 | |
|
519 | 511 | @date_from = Date.civil(@year, @month, 1) |
|
520 | 512 | @date_to = (@date_from >> 1)-1 |
|
521 | 513 | # start on monday |
|
522 | 514 | @date_from = @date_from - (@date_from.cwday-1) |
|
523 | 515 | # finish on sunday |
|
524 | 516 | @date_to = @date_to + (7-@date_to.cwday) |
|
525 | 517 | |
|
526 | 518 | @events = [] |
|
527 | 519 | @project.issues_with_subprojects(params[:with_subprojects]) do |
|
528 | 520 | @events += Issue.find(:all, |
|
529 | 521 | :include => [:tracker, :status, :assigned_to, :priority, :project], |
|
530 | 522 | :conditions => ["((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?)) and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", @date_from, @date_to, @date_from, @date_to] |
|
531 | 523 | ) unless @selected_tracker_ids.empty? |
|
532 | 524 | end |
|
533 | 525 | @events += @project.versions.find(:all, :conditions => ["effective_date BETWEEN ? AND ?", @date_from, @date_to]) |
|
534 | 526 | |
|
535 | 527 | @ending_events_by_days = @events.group_by {|event| event.due_date} |
|
536 | 528 | @starting_events_by_days = @events.group_by {|event| event.start_date} |
|
537 | 529 | |
|
538 | 530 | render :layout => false if request.xhr? |
|
539 | 531 | end |
|
540 | 532 | |
|
541 | 533 | def gantt |
|
542 | 534 | @trackers = Tracker.find(:all, :order => 'position') |
|
543 | 535 | retrieve_selected_tracker_ids(@trackers) |
|
544 | 536 | |
|
545 | 537 | if params[:year] and params[:year].to_i >0 |
|
546 | 538 | @year_from = params[:year].to_i |
|
547 | 539 | if params[:month] and params[:month].to_i >=1 and params[:month].to_i <= 12 |
|
548 | 540 | @month_from = params[:month].to_i |
|
549 | 541 | else |
|
550 | 542 | @month_from = 1 |
|
551 | 543 | end |
|
552 | 544 | else |
|
553 | 545 | @month_from ||= (Date.today << 1).month |
|
554 | 546 | @year_from ||= (Date.today << 1).year |
|
555 | 547 | end |
|
556 | 548 | |
|
557 | 549 | @zoom = (params[:zoom].to_i > 0 and params[:zoom].to_i < 5) ? params[:zoom].to_i : 2 |
|
558 | 550 | @months = (params[:months].to_i > 0 and params[:months].to_i < 25) ? params[:months].to_i : 6 |
|
559 | 551 | |
|
560 | 552 | @date_from = Date.civil(@year_from, @month_from, 1) |
|
561 | 553 | @date_to = (@date_from >> @months) - 1 |
|
562 | 554 | |
|
563 | 555 | @events = [] |
|
564 | 556 | @project.issues_with_subprojects(params[:with_subprojects]) do |
|
565 | 557 | @events += Issue.find(:all, |
|
566 | 558 | :order => "start_date, due_date", |
|
567 | 559 | :include => [:tracker, :status, :assigned_to, :priority, :project], |
|
568 | 560 | :conditions => ["(((start_date>=? and start_date<=?) or (due_date>=? and due_date<=?) or (start_date<? and due_date>?)) and start_date is not null and due_date is not null and #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')}))", @date_from, @date_to, @date_from, @date_to, @date_from, @date_to] |
|
569 | 561 | ) unless @selected_tracker_ids.empty? |
|
570 | 562 | end |
|
571 | 563 | @events += @project.versions.find(:all, :conditions => ["effective_date BETWEEN ? AND ?", @date_from, @date_to]) |
|
572 | 564 | @events.sort! {|x,y| x.start_date <=> y.start_date } |
|
573 | 565 | |
|
574 | 566 | if params[:format]=='pdf' |
|
575 | 567 | @options_for_rfpdf ||= {} |
|
576 | 568 | @options_for_rfpdf[:file_name] = "#{@project.identifier}-gantt.pdf" |
|
577 | 569 | render :template => "projects/gantt.rfpdf", :layout => false |
|
578 | 570 | elsif params[:format]=='png' && respond_to?('gantt_image') |
|
579 | 571 | image = gantt_image(@events, @date_from, @months, @zoom) |
|
580 | 572 | image.format = 'PNG' |
|
581 | 573 | send_data(image.to_blob, :disposition => 'inline', :type => 'image/png', :filename => "#{@project.identifier}-gantt.png") |
|
582 | 574 | else |
|
583 | 575 | render :template => "projects/gantt.rhtml" |
|
584 | 576 | end |
|
585 | 577 | end |
|
586 | 578 | |
|
587 | 579 | def feeds |
|
588 | 580 | @queries = @project.queries.find :all, :conditions => ["is_public=? or user_id=?", true, (logged_in_user ? logged_in_user.id : 0)] |
|
589 | 581 | @key = User.current.rss_key |
|
590 | 582 | end |
|
591 | 583 | |
|
592 | 584 | private |
|
593 | 585 | # Find project of id params[:id] |
|
594 | 586 | # if not found, redirect to project list |
|
595 | 587 | # Used as a before_filter |
|
596 | 588 | def find_project |
|
597 | 589 | @project = Project.find(params[:id]) |
|
598 | 590 | rescue ActiveRecord::RecordNotFound |
|
599 | 591 | render_404 |
|
600 | 592 | end |
|
601 | 593 | |
|
602 | 594 | def retrieve_selected_tracker_ids(selectable_trackers) |
|
603 | 595 | if ids = params[:tracker_ids] |
|
604 | 596 | @selected_tracker_ids = (ids.is_a? Array) ? ids.collect { |id| id.to_i.to_s } : ids.split('/').collect { |id| id.to_i.to_s } |
|
605 | 597 | else |
|
606 | 598 | @selected_tracker_ids = selectable_trackers.collect {|t| t.id.to_s } |
|
607 | 599 | end |
|
608 | 600 | end |
|
609 | 601 | |
|
610 | 602 | # Retrieve query from session or build a new query |
|
611 | 603 | def retrieve_query |
|
612 | 604 | if params[:query_id] |
|
613 | 605 | @query = @project.queries.find(params[:query_id]) |
|
614 | 606 | @query.executed_by = logged_in_user |
|
615 | 607 | session[:query] = @query |
|
616 | 608 | else |
|
617 | 609 | if params[:set_filter] or !session[:query] or session[:query].project_id != @project.id |
|
618 | 610 | # Give it a name, required to be valid |
|
619 | 611 | @query = Query.new(:name => "_", :executed_by => logged_in_user) |
|
620 | 612 | @query.project = @project |
|
621 | 613 | if params[:fields] and params[:fields].is_a? Array |
|
622 | 614 | params[:fields].each do |field| |
|
623 | 615 | @query.add_filter(field, params[:operators][field], params[:values][field]) |
|
624 | 616 | end |
|
625 | 617 | else |
|
626 | 618 | @query.available_filters.keys.each do |field| |
|
627 | 619 | @query.add_short_filter(field, params[field]) if params[field] |
|
628 | 620 | end |
|
629 | 621 | end |
|
630 | 622 | session[:query] = @query |
|
631 | 623 | else |
|
632 | 624 | @query = session[:query] |
|
633 | 625 | end |
|
634 | 626 | end |
|
635 | 627 | end |
|
636 | 628 | end |
@@ -1,86 +1,91 | |||
|
1 | 1 | # redMine - project management software |
|
2 | 2 | # Copyright (C) 2006 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 | module IssuesHelper |
|
19 | 19 | |
|
20 | 20 | def show_detail(detail, no_html=false) |
|
21 | 21 | case detail.property |
|
22 | 22 | when 'attr' |
|
23 | 23 | label = l(("field_" + detail.prop_key.to_s.gsub(/\_id$/, "")).to_sym) |
|
24 | 24 | case detail.prop_key |
|
25 | 25 | when 'due_date', 'start_date' |
|
26 | 26 | value = format_date(detail.value.to_date) if detail.value |
|
27 | 27 | old_value = format_date(detail.old_value.to_date) if detail.old_value |
|
28 | 28 | when 'status_id' |
|
29 | 29 | s = IssueStatus.find_by_id(detail.value) and value = s.name if detail.value |
|
30 | 30 | s = IssueStatus.find_by_id(detail.old_value) and old_value = s.name if detail.old_value |
|
31 | 31 | when 'assigned_to_id' |
|
32 | 32 | u = User.find_by_id(detail.value) and value = u.name if detail.value |
|
33 | 33 | u = User.find_by_id(detail.old_value) and old_value = u.name if detail.old_value |
|
34 | 34 | when 'priority_id' |
|
35 | 35 | e = Enumeration.find_by_id(detail.value) and value = e.name if detail.value |
|
36 | 36 | e = Enumeration.find_by_id(detail.old_value) and old_value = e.name if detail.old_value |
|
37 | 37 | when 'category_id' |
|
38 | 38 | c = IssueCategory.find_by_id(detail.value) and value = c.name if detail.value |
|
39 | 39 | c = IssueCategory.find_by_id(detail.old_value) and old_value = c.name if detail.old_value |
|
40 | 40 | when 'fixed_version_id' |
|
41 | 41 | v = Version.find_by_id(detail.value) and value = v.name if detail.value |
|
42 | 42 | v = Version.find_by_id(detail.old_value) and old_value = v.name if detail.old_value |
|
43 | 43 | end |
|
44 | 44 | when 'cf' |
|
45 | 45 | custom_field = CustomField.find_by_id(detail.prop_key) |
|
46 | 46 | if custom_field |
|
47 | 47 | label = custom_field.name |
|
48 | 48 | value = format_value(detail.value, custom_field.field_format) if detail.value |
|
49 | 49 | old_value = format_value(detail.old_value, custom_field.field_format) if detail.old_value |
|
50 | 50 | end |
|
51 | 51 | when 'attachment' |
|
52 | 52 | label = l(:label_attachment) |
|
53 | 53 | end |
|
54 | 54 | |
|
55 | 55 | label ||= detail.prop_key |
|
56 | 56 | value ||= detail.value |
|
57 | 57 | old_value ||= detail.old_value |
|
58 | 58 | |
|
59 | 59 | unless no_html |
|
60 | 60 | label = content_tag('strong', label) |
|
61 | 61 | old_value = content_tag("i", h(old_value)) if detail.old_value |
|
62 | 62 | old_value = content_tag("strike", old_value) if detail.old_value and (!detail.value or detail.value.empty?) |
|
63 | value = content_tag("i", h(value)) if value | |
|
63 | if detail.property == 'attachment' && !value.blank? && Attachment.find_by_id(detail.prop_key) | |
|
64 | # Link to the attachment if it has not been removed | |
|
65 | value = link_to(value, :controller => 'attachments', :action => 'download', :id => detail.prop_key) | |
|
66 | else | |
|
67 | value = content_tag("i", h(value)) if value | |
|
68 | end | |
|
64 | 69 | end |
|
65 | 70 | |
|
66 | 71 | if !detail.value.blank? |
|
67 | 72 | case detail.property |
|
68 | 73 | when 'attr', 'cf' |
|
69 | 74 | if !detail.old_value.blank? |
|
70 | 75 | label + " " + l(:text_journal_changed, old_value, value) |
|
71 | 76 | else |
|
72 | 77 | label + " " + l(:text_journal_set_to, value) |
|
73 | 78 | end |
|
74 | 79 | when 'attachment' |
|
75 | 80 | "#{label} #{value} #{l(:label_added)}" |
|
76 | 81 | end |
|
77 | 82 | else |
|
78 | 83 | case detail.property |
|
79 | 84 | when 'attr', 'cf' |
|
80 | 85 | label + " " + l(:text_journal_deleted) + " (#{old_value})" |
|
81 | 86 | when 'attachment' |
|
82 | 87 | "#{label} #{old_value} #{l(:label_deleted)}" |
|
83 | 88 | end |
|
84 | 89 | end |
|
85 | 90 | end |
|
86 | 91 | end |
@@ -1,30 +1,21 | |||
|
1 | 1 | <h2><%=l(:label_project_plural)%></h2> |
|
2 | 2 | |
|
3 |
< |
|
|
4 | <thead><tr> | |
|
5 | <%= sort_header_tag("#{Project.table_name}.name", :caption => l(:label_project)) %> | |
|
6 | <th><%=l(:field_parent)%></th> | |
|
7 | <%= sort_header_tag("#{Project.table_name}.created_on", :caption => l(:field_created_on)) %> | |
|
8 | </tr></thead> | |
|
9 | <tbody> | |
|
10 | <% for project in @projects %> | |
|
11 | <tr class="<%= cycle("odd", "even") %>"> | |
|
12 | <td> | |
|
13 | <%= link_to project.name, {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "") %><br /> | |
|
14 | <%= textilizable project.description, :project => project %> | |
|
15 | </td> | |
|
16 | <td><%= link_to(project.parent.name, :action => 'show', :id => project.parent) unless project.parent.nil? %></td> | |
|
17 | <td align="center"><%= format_date(project.created_on) %></td> | |
|
18 | </tr> | |
|
3 | <dl class="projects"> | |
|
4 | <% @project_tree.keys.sort.each do |project| %> | |
|
5 | <dt><%= link_to project.name, {:action => 'show', :id => project}, :class => (User.current.member_of?(project) ? "icon icon-fav" : "") %> | |
|
6 | <dd><%= textilizable(project.description, :project => project) %> | |
|
7 | ||
|
8 | <% if @project_tree[project].any? %> | |
|
9 | <%= l(:label_subproject_plural) %>: | |
|
10 | <%= @project_tree[project].sort.collect {|subproject| | |
|
11 | link_to(subproject.name, {:action => 'show', :id => subproject}, :class => (User.current.member_of?(subproject) ? "icon icon-fav" : ""))}.join(', ') %> | |
|
12 | <% end %> | |
|
13 | </dd></dt> | |
|
19 | 14 | <% end %> |
|
20 | </tbody> | |
|
21 | </table> | |
|
15 | </dl> | |
|
22 | 16 | |
|
23 | 17 | <% if User.current.logged? %> |
|
24 | 18 | <div class="contextual"> |
|
25 | 19 | <span class="icon icon-fav"><%= l(:label_my_projects) %></span> |
|
26 | 20 | </div> |
|
27 | 21 | <% end %> |
|
28 | ||
|
29 | <%= pagination_links_full @project_pages %> | |
|
30 | [ <%= @project_pages.current.first_item %> - <%= @project_pages.current.last_item %> / <%= @project_count %> ] |
@@ -1,734 +1,736 | |||
|
1 | 1 | /* andreas08 - an open source xhtml/css website layout by Andreas Viklund - http://andreasviklund.com . Free to use in any way and for any purpose as long as the proper credits are given to the original designer. Version: 1.0, November 28, 2005 */ |
|
2 | 2 | /* Edited by Jean-Philippe Lang *> |
|
3 | 3 | /**************** Body and tag styles ****************/ |
|
4 | 4 | |
|
5 | 5 | #header * {margin:0; padding:0;} |
|
6 | 6 | p, ul, ol, li {margin:0; padding:0;} |
|
7 | 7 | |
|
8 | 8 | body{ |
|
9 | 9 | font:76% Verdana,Tahoma,Arial,sans-serif; |
|
10 | 10 | line-height:1.4em; |
|
11 | 11 | text-align:center; |
|
12 | 12 | color:#303030; |
|
13 | 13 | background:#e8eaec; |
|
14 | 14 | margin:0; |
|
15 | 15 | } |
|
16 | 16 | |
|
17 | 17 | a{color:#467aa7;font-weight:bold;text-decoration:none;background-color:inherit;} |
|
18 | 18 | a:hover{color:#2a5a8a; text-decoration:none; background-color:inherit;} |
|
19 | 19 | a img{border:none;} |
|
20 | 20 | |
|
21 | 21 | p{margin:0 0 1em 0;} |
|
22 | 22 | p form{margin-top:0; margin-bottom:20px;} |
|
23 | 23 | |
|
24 | 24 | img.left,img.center,img.right{padding:4px; border:1px solid #a0a0a0;} |
|
25 | 25 | img.left{float:left; margin:0 12px 5px 0;} |
|
26 | 26 | img.center{display:block; margin:0 auto 5px auto;} |
|
27 | 27 | img.right{float:right; margin:0 0 5px 12px;} |
|
28 | 28 | |
|
29 | 29 | /**************** Header and navigation styles ****************/ |
|
30 | 30 | |
|
31 | 31 | #container{ |
|
32 | 32 | width:100%; |
|
33 | 33 | min-width: 800px; |
|
34 | 34 | margin:0; |
|
35 | 35 | padding:0; |
|
36 | 36 | text-align:left; |
|
37 | 37 | background:#ffffff; |
|
38 | 38 | color:#303030; |
|
39 | 39 | } |
|
40 | 40 | |
|
41 | 41 | #header{ |
|
42 | 42 | height:4.5em; |
|
43 | 43 | margin:0; |
|
44 | 44 | background:#467aa7; |
|
45 | 45 | color:#ffffff; |
|
46 | 46 | margin-bottom:1px; |
|
47 | 47 | } |
|
48 | 48 | |
|
49 | 49 | #header h1{ |
|
50 | 50 | padding:10px 0 0 20px; |
|
51 | 51 | font-size:2em; |
|
52 | 52 | background-color:inherit; |
|
53 | 53 | color:#fff; |
|
54 | 54 | letter-spacing:-1px; |
|
55 | 55 | font-weight:bold; |
|
56 | 56 | font-family: Trebuchet MS,Georgia,"Times New Roman",serif; |
|
57 | 57 | } |
|
58 | 58 | |
|
59 | 59 | #header h2{ |
|
60 | 60 | margin:3px 0 0 40px; |
|
61 | 61 | font-size:1.5em; |
|
62 | 62 | background-color:inherit; |
|
63 | 63 | color:#f0f2f4; |
|
64 | 64 | letter-spacing:-1px; |
|
65 | 65 | font-weight:normal; |
|
66 | 66 | font-family: Trebuchet MS,Georgia,"Times New Roman",serif; |
|
67 | 67 | } |
|
68 | 68 | |
|
69 | 69 | #header a {color:#fff;} |
|
70 | 70 | |
|
71 | 71 | #navigation{ |
|
72 | 72 | height:2.2em; |
|
73 | 73 | line-height:2.2em; |
|
74 | 74 | margin:0; |
|
75 | 75 | background:#578bb8; |
|
76 | 76 | color:#ffffff; |
|
77 | 77 | } |
|
78 | 78 | |
|
79 | 79 | #navigation li{ |
|
80 | 80 | float:left; |
|
81 | 81 | list-style-type:none; |
|
82 | 82 | border-right:1px solid #ffffff; |
|
83 | 83 | white-space:nowrap; |
|
84 | 84 | } |
|
85 | 85 | |
|
86 | 86 | #navigation li.right { |
|
87 | 87 | float:right; |
|
88 | 88 | list-style-type:none; |
|
89 | 89 | border-right:0; |
|
90 | 90 | border-left:1px solid #ffffff; |
|
91 | 91 | white-space:nowrap; |
|
92 | 92 | } |
|
93 | 93 | |
|
94 | 94 | #navigation li a{ |
|
95 | 95 | display:block; |
|
96 | 96 | padding:0px 10px 0px 22px; |
|
97 | 97 | font-size:0.8em; |
|
98 | 98 | font-weight:normal; |
|
99 | 99 | text-decoration:none; |
|
100 | 100 | background-color:inherit; |
|
101 | 101 | color: #ffffff; |
|
102 | 102 | } |
|
103 | 103 | |
|
104 | 104 | #navigation li.submenu {background:url(../images/arrow_down.png) 96% 80% no-repeat;} |
|
105 | 105 | #navigation li.submenu a {padding:0px 16px 0px 22px;} |
|
106 | 106 | * html #navigation a {width:1%;} |
|
107 | 107 | |
|
108 | 108 | #navigation .selected,#navigation a:hover{ |
|
109 | 109 | color:#ffffff; |
|
110 | 110 | text-decoration:none; |
|
111 | 111 | background-color: #80b0da; |
|
112 | 112 | } |
|
113 | 113 | |
|
114 | 114 | /**************** Icons *******************/ |
|
115 | 115 | .icon { |
|
116 | 116 | background-position: 0% 40%; |
|
117 | 117 | background-repeat: no-repeat; |
|
118 | 118 | padding-left: 20px; |
|
119 | 119 | padding-top: 2px; |
|
120 | 120 | padding-bottom: 3px; |
|
121 | vertical-align: middle; | |
|
122 | 121 | } |
|
123 | 122 | |
|
124 | 123 | #navigation .icon { |
|
125 | 124 | background-position: 4px 50%; |
|
126 | 125 | } |
|
127 | 126 | |
|
128 | 127 | .icon22 { |
|
129 | 128 | background-position: 0% 40%; |
|
130 | 129 | background-repeat: no-repeat; |
|
131 | 130 | padding-left: 26px; |
|
132 | 131 | line-height: 22px; |
|
133 | 132 | vertical-align: middle; |
|
134 | 133 | } |
|
135 | 134 | |
|
136 | 135 | .icon-add { background-image: url(../images/add.png); } |
|
137 | 136 | .icon-edit { background-image: url(../images/edit.png); } |
|
138 | 137 | .icon-del { background-image: url(../images/delete.png); } |
|
139 | 138 | .icon-move { background-image: url(../images/move.png); } |
|
140 | 139 | .icon-save { background-image: url(../images/save.png); } |
|
141 | 140 | .icon-cancel { background-image: url(../images/cancel.png); } |
|
142 | 141 | .icon-pdf { background-image: url(../images/pdf.png); } |
|
143 | 142 | .icon-csv { background-image: url(../images/csv.png); } |
|
144 | 143 | .icon-html { background-image: url(../images/html.png); } |
|
145 | 144 | .icon-image { background-image: url(../images/image.png); } |
|
146 | 145 | .icon-txt { background-image: url(../images/txt.png); } |
|
147 | 146 | .icon-file { background-image: url(../images/file.png); } |
|
148 | 147 | .icon-folder { background-image: url(../images/folder.png); } |
|
149 | 148 | .icon-package { background-image: url(../images/package.png); } |
|
150 | 149 | .icon-home { background-image: url(../images/home.png); } |
|
151 | 150 | .icon-user { background-image: url(../images/user.png); } |
|
152 | 151 | .icon-mypage { background-image: url(../images/user_page.png); } |
|
153 | 152 | .icon-admin { background-image: url(../images/admin.png); } |
|
154 | 153 | .icon-projects { background-image: url(../images/projects.png); } |
|
155 | 154 | .icon-logout { background-image: url(../images/logout.png); } |
|
156 | 155 | .icon-help { background-image: url(../images/help.png); } |
|
157 | 156 | .icon-attachment { background-image: url(../images/attachment.png); } |
|
158 | 157 | .icon-index { background-image: url(../images/index.png); } |
|
159 | 158 | .icon-history { background-image: url(../images/history.png); } |
|
160 | 159 | .icon-feed { background-image: url(../images/feed.png); } |
|
161 | 160 | .icon-time { background-image: url(../images/time.png); } |
|
162 | 161 | .icon-stats { background-image: url(../images/stats.png); } |
|
163 | 162 | .icon-warning { background-image: url(../images/warning.png); } |
|
164 | 163 | .icon-fav { background-image: url(../images/fav.png); } |
|
165 | 164 | .icon-fav-off { background-image: url(../images/fav_off.png); } |
|
166 | 165 | .icon-reload { background-image: url(../images/reload.png); } |
|
167 | 166 | .icon-lock { background-image: url(../images/locked.png); } |
|
168 | 167 | .icon-unlock { background-image: url(../images/unlock.png); } |
|
169 | 168 | |
|
170 | 169 | .icon22-projects { background-image: url(../images/22x22/projects.png); } |
|
171 | 170 | .icon22-users { background-image: url(../images/22x22/users.png); } |
|
172 | 171 | .icon22-tracker { background-image: url(../images/22x22/tracker.png); } |
|
173 | 172 | .icon22-role { background-image: url(../images/22x22/role.png); } |
|
174 | 173 | .icon22-workflow { background-image: url(../images/22x22/workflow.png); } |
|
175 | 174 | .icon22-options { background-image: url(../images/22x22/options.png); } |
|
176 | 175 | .icon22-notifications { background-image: url(../images/22x22/notifications.png); } |
|
177 | 176 | .icon22-authent { background-image: url(../images/22x22/authent.png); } |
|
178 | 177 | .icon22-info { background-image: url(../images/22x22/info.png); } |
|
179 | 178 | .icon22-comment { background-image: url(../images/22x22/comment.png); } |
|
180 | 179 | .icon22-package { background-image: url(../images/22x22/package.png); } |
|
181 | 180 | .icon22-settings { background-image: url(../images/22x22/settings.png); } |
|
182 | 181 | |
|
183 | 182 | /**************** Content styles ****************/ |
|
184 | 183 | |
|
185 | 184 | html>body #content { |
|
186 | 185 | height: auto; |
|
187 | 186 | min-height: 500px; |
|
188 | 187 | } |
|
189 | 188 | |
|
190 | 189 | #content{ |
|
191 | 190 | width: auto; |
|
192 | 191 | height:500px; |
|
193 | 192 | font-size:0.9em; |
|
194 | 193 | padding:20px 10px 10px 20px; |
|
195 | 194 | margin-left: 120px; |
|
196 | 195 | border-left: 1px dashed #c0c0c0; |
|
197 | 196 | |
|
198 | 197 | } |
|
199 | 198 | |
|
200 | 199 | #content h2, #content div.wiki h1 { |
|
201 | 200 | display:block; |
|
202 | 201 | margin:0 0 16px 0; |
|
203 | 202 | font-size:1.7em; |
|
204 | 203 | font-weight:normal; |
|
205 | 204 | letter-spacing:-1px; |
|
206 | 205 | color:#606060; |
|
207 | 206 | background-color:inherit; |
|
208 | 207 | font-family: Trebuchet MS,Georgia,"Times New Roman",serif; |
|
209 | 208 | } |
|
210 | 209 | |
|
211 | 210 | #content h2 a{font-weight:normal;} |
|
212 | 211 | #content h3{margin:0 0 12px 0; font-size:1.4em;color:#707070;font-family: Trebuchet MS,Georgia,"Times New Roman",serif;} |
|
213 | 212 | #content h4{font-size: 1em; margin-bottom: 12px; margin-top: 20px; font-weight: normal; border-bottom: dotted 1px #c0c0c0;} |
|
214 | 213 | #content a:hover,#subcontent a:hover{text-decoration:underline;} |
|
215 | 214 | #content ul,#content ol{margin:0 5px 16px 35px;} |
|
216 | 215 | #content dl{margin:0 5px 10px 25px;} |
|
217 | 216 | #content dt{font-weight:bold; margin-bottom:5px;} |
|
218 | 217 | #content dd{margin:0 0 10px 15px;} |
|
219 | 218 | |
|
220 | 219 | #content .tabs{height: 2.6em;} |
|
221 | 220 | #content .tabs ul{margin:0;} |
|
222 | 221 | #content .tabs ul li{ |
|
223 | 222 | float:left; |
|
224 | 223 | list-style-type:none; |
|
225 | 224 | white-space:nowrap; |
|
226 | 225 | margin-right:8px; |
|
227 | 226 | background:#fff; |
|
228 | 227 | } |
|
229 | 228 | #content .tabs ul li a{ |
|
230 | 229 | display:block; |
|
231 | 230 | font-size: 0.9em; |
|
232 | 231 | text-decoration:none; |
|
233 | 232 | line-height:1em; |
|
234 | 233 | padding:4px; |
|
235 | 234 | border: 1px solid #c0c0c0; |
|
236 | 235 | } |
|
237 | 236 | |
|
238 | 237 | #content .tabs ul li a.selected, #content .tabs ul li a:hover{ |
|
239 | 238 | background-color: #80b0da; |
|
240 | 239 | border: 1px solid #80b0da; |
|
241 | 240 | color: #fff; |
|
242 | 241 | text-decoration:none; |
|
243 | 242 | } |
|
244 | 243 | |
|
245 | 244 | /***********************************************/ |
|
246 | 245 | |
|
247 | 246 | form {display: inline;} |
|
248 | 247 | blockquote {padding-left: 6px; border-left: 2px solid #ccc;} |
|
249 | 248 | input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;} |
|
250 | 249 | |
|
251 | 250 | input.button-small {font-size: 0.8em;} |
|
252 | 251 | textarea.wiki-edit { width: 99.5%; } |
|
253 | 252 | .select-small {font-size: 0.8em;} |
|
254 | 253 | label {font-weight: bold; font-size: 1em; color: #505050;} |
|
255 | 254 | fieldset {border:1px solid #c0c0c0; padding: 6px;} |
|
256 | 255 | legend {color: #505050;} |
|
257 | 256 | .required {color: #bb0000;} |
|
258 | 257 | .odd {background-color:#f6f7f8;} |
|
259 | 258 | .even {background-color: #fff;} |
|
260 | 259 | hr { border:0; border-top: dotted 1px #fff; border-bottom: dotted 1px #c0c0c0; } |
|
261 | 260 | table p {margin:0; padding:0;} |
|
262 | 261 | |
|
263 | 262 | .highlight { background-color: #FCFD8D;} |
|
264 | 263 | |
|
265 | 264 | div.square { |
|
266 | 265 | border: 1px solid #999; |
|
267 | 266 | float: left; |
|
268 | 267 | margin: .4em .5em 0 0; |
|
269 | 268 | overflow: hidden; |
|
270 | 269 | width: .6em; height: .6em; |
|
271 | 270 | } |
|
272 | 271 | |
|
273 | 272 | ul.documents { |
|
274 | 273 | list-style-type: none; |
|
275 | 274 | padding: 0; |
|
276 | 275 | margin: 0; |
|
277 | 276 | } |
|
278 | 277 | |
|
279 | 278 | ul.documents li { |
|
280 | 279 | background-image: url(../images/32x32/file.png); |
|
281 | 280 | background-repeat: no-repeat; |
|
282 | 281 | background-position: 0 1px; |
|
283 | 282 | padding-left: 36px; |
|
284 | 283 | margin-bottom: 10px; |
|
285 | 284 | margin-left: -37px; |
|
286 | 285 | } |
|
287 | 286 | |
|
288 | 287 | /********** Table used to display lists of things ***********/ |
|
289 | 288 | |
|
290 | 289 | table.list { |
|
291 | 290 | width:100%; |
|
292 | 291 | border-collapse: collapse; |
|
293 | 292 | border: 1px dotted #d0d0d0; |
|
294 | 293 | margin-bottom: 6px; |
|
295 | 294 | } |
|
296 | 295 | |
|
297 | 296 | table.with-cells td { |
|
298 | 297 | border: 1px solid #d7d7d7; |
|
299 | 298 | } |
|
300 | 299 | |
|
301 | 300 | table.list td { |
|
302 | 301 | padding:2px; |
|
303 | 302 | } |
|
304 | 303 | |
|
305 | 304 | table.list thead th { |
|
306 | 305 | text-align: center; |
|
307 | 306 | background: #eee; |
|
308 | 307 | border: 1px solid #d7d7d7; |
|
309 | 308 | color: #777; |
|
310 | 309 | } |
|
311 | 310 | |
|
312 | 311 | table.list tbody th { |
|
313 | 312 | font-weight: bold; |
|
314 | 313 | background: #eed; |
|
315 | 314 | border: 1px solid #d7d7d7; |
|
316 | 315 | color: #777; |
|
317 | 316 | } |
|
318 | 317 | |
|
319 | 318 | /*========== Drop down menu ==============*/ |
|
320 | 319 | div.menu { |
|
321 | 320 | background-color: #FFFFFF; |
|
322 | 321 | border-style: solid; |
|
323 | 322 | border-width: 1px; |
|
324 | 323 | border-color: #7F9DB9; |
|
325 | 324 | position: absolute; |
|
326 | 325 | top: 0px; |
|
327 | 326 | left: 0px; |
|
328 | 327 | padding: 0; |
|
329 | 328 | visibility: hidden; |
|
330 | 329 | z-index: 101; |
|
331 | 330 | } |
|
332 | 331 | |
|
333 | 332 | div.menu a.menuItem { |
|
334 | 333 | font-size: 10px; |
|
335 | 334 | font-weight: normal; |
|
336 | 335 | line-height: 2em; |
|
337 | 336 | color: #000000; |
|
338 | 337 | background-color: #FFFFFF; |
|
339 | 338 | cursor: default; |
|
340 | 339 | display: block; |
|
341 | 340 | padding: 0 1em; |
|
342 | 341 | margin: 0; |
|
343 | 342 | border: 0; |
|
344 | 343 | text-decoration: none; |
|
345 | 344 | white-space: nowrap; |
|
346 | 345 | } |
|
347 | 346 | |
|
348 | 347 | div.menu a.menuItem:hover, div.menu a.menuItemHighlight { |
|
349 | 348 | background-color: #80b0da; |
|
350 | 349 | color: #ffffff; |
|
351 | 350 | } |
|
352 | 351 | |
|
353 | 352 | div.menu a.menuItem span.menuItemText {} |
|
354 | 353 | |
|
355 | 354 | div.menu a.menuItem span.menuItemArrow { |
|
356 | 355 | margin-right: -.75em; |
|
357 | 356 | } |
|
358 | 357 | |
|
359 | 358 | /**************** Sidebar styles ****************/ |
|
360 | 359 | |
|
361 | 360 | #subcontent{ |
|
362 | 361 | position: absolute; |
|
363 | 362 | left: 0px; |
|
364 | 363 | width:95px; |
|
365 | 364 | padding:20px 20px 10px 5px; |
|
366 | 365 | overflow: hidden; |
|
367 | 366 | } |
|
368 | 367 | |
|
369 | 368 | #subcontent h2{ |
|
370 | 369 | display:block; |
|
371 | 370 | margin:0 0 5px 0; |
|
372 | 371 | font-size:1.0em; |
|
373 | 372 | font-weight:bold; |
|
374 | 373 | text-align:left; |
|
375 | 374 | color:#606060; |
|
376 | 375 | background-color:inherit; |
|
377 | 376 | font-family: Trebuchet MS,Georgia,"Times New Roman",serif; |
|
378 | 377 | } |
|
379 | 378 | |
|
380 | 379 | #subcontent p{margin:0 0 16px 0; font-size:0.9em;} |
|
381 | 380 | |
|
382 | 381 | /**************** Menublock styles ****************/ |
|
383 | 382 | |
|
384 | 383 | .menublock{margin:0 0 20px 8px; font-size:0.8em;} |
|
385 | 384 | .menublock li{list-style:none; display:block; padding:1px; margin-bottom:0px;} |
|
386 | 385 | .menublock li a{font-weight:bold; text-decoration:none;} |
|
387 | 386 | .menublock li a:hover{text-decoration:none;} |
|
388 | 387 | .menublock li ul{margin:0; font-size:1em; font-weight:normal;} |
|
389 | 388 | .menublock li ul li{margin-bottom:0;} |
|
390 | 389 | .menublock li ul a{font-weight:normal;} |
|
391 | 390 | |
|
392 | 391 | /**************** Footer styles ****************/ |
|
393 | 392 | |
|
394 | 393 | #footer{ |
|
395 | 394 | clear:both; |
|
396 | 395 | padding:5px 0; |
|
397 | 396 | margin:0; |
|
398 | 397 | font-size:0.9em; |
|
399 | 398 | color:#f0f0f0; |
|
400 | 399 | background:#467aa7; |
|
401 | 400 | } |
|
402 | 401 | |
|
403 | 402 | #footer p{padding:0; margin:0; text-align:center;} |
|
404 | 403 | #footer a{color:#f0f0f0; background-color:inherit; font-weight:bold;} |
|
405 | 404 | #footer a:hover{color:#ffffff; background-color:inherit; text-decoration: underline;} |
|
406 | 405 | |
|
407 | 406 | /**************** Misc classes and styles ****************/ |
|
408 | 407 | |
|
409 | 408 | .splitcontentleft{float:left; width:49%;} |
|
410 | 409 | .splitcontentright{float:right; width:49%;} |
|
411 | 410 | .clear{clear:both;} |
|
412 | 411 | .small{font-size:0.8em;line-height:1.4em;padding:0 0 0 0;} |
|
413 | 412 | .hide{display:none;} |
|
414 | 413 | .textcenter{text-align:center;} |
|
415 | 414 | .textright{text-align:right;} |
|
416 | 415 | .important{color:#f02025; background-color:inherit; font-weight:bold;} |
|
417 | 416 | |
|
418 | 417 | .box{ |
|
419 | 418 | margin:0 0 20px 0; |
|
420 | 419 | padding:10px; |
|
421 | 420 | border:1px solid #c0c0c0; |
|
422 | 421 | background-color:#fafbfc; |
|
423 | 422 | color:#505050; |
|
424 | 423 | line-height:1.5em; |
|
425 | 424 | } |
|
426 | 425 | |
|
427 | 426 | a.close-icon { |
|
428 | 427 | display:block; |
|
429 | 428 | margin-top:3px; |
|
430 | 429 | overflow:hidden; |
|
431 | 430 | width:12px; |
|
432 | 431 | height:12px; |
|
433 | 432 | background-repeat: no-repeat; |
|
434 | 433 | cursor:pointer; |
|
435 | 434 | background-image:url('../images/close.png'); |
|
436 | 435 | } |
|
437 | 436 | |
|
438 | 437 | a.close-icon:hover { |
|
439 | 438 | background-image:url('../images/close_hl.png'); |
|
440 | 439 | } |
|
441 | 440 | |
|
442 | 441 | .rightbox{ |
|
443 | 442 | background: #fafbfc; |
|
444 | 443 | border: 1px solid #c0c0c0; |
|
445 | 444 | float: right; |
|
446 | 445 | padding: 8px; |
|
447 | 446 | position: relative; |
|
448 | 447 | margin: 0 5px 5px; |
|
449 | 448 | } |
|
450 | 449 | |
|
451 | 450 | div.attachments {padding-left: 6px; border-left: 2px solid #ccc; margin-bottom: 8px;} |
|
452 | 451 | div.attachments p {margin-bottom:2px;} |
|
453 | 452 | |
|
454 | 453 | .overlay{ |
|
455 | 454 | position: absolute; |
|
456 | 455 | margin-left:0; |
|
457 | 456 | z-index: 50; |
|
458 | 457 | } |
|
459 | 458 | |
|
460 | 459 | .layout-active { |
|
461 | 460 | background: #ECF3E1; |
|
462 | 461 | } |
|
463 | 462 | |
|
464 | 463 | .block-receiver { |
|
465 | 464 | border:1px dashed #c0c0c0; |
|
466 | 465 | margin-bottom: 20px; |
|
467 | 466 | padding: 15px 0 15px 0; |
|
468 | 467 | } |
|
469 | 468 | |
|
470 | 469 | .mypage-box { |
|
471 | 470 | margin:0 0 20px 0; |
|
472 | 471 | color:#505050; |
|
473 | 472 | line-height:1.5em; |
|
474 | 473 | } |
|
475 | 474 | |
|
476 | 475 | .handle { |
|
477 | 476 | cursor: move; |
|
478 | 477 | } |
|
479 | 478 | |
|
480 | 479 | .login { |
|
481 | 480 | width: 50%; |
|
482 | 481 | text-align: left; |
|
483 | 482 | } |
|
484 | 483 | |
|
485 | 484 | img.calendar-trigger { |
|
486 | 485 | cursor: pointer; |
|
487 | 486 | vertical-align: middle; |
|
488 | 487 | margin-left: 4px; |
|
489 | 488 | } |
|
490 | 489 | |
|
491 | 490 | #history p { |
|
492 | 491 | margin-left: 34px; |
|
493 | 492 | } |
|
494 | 493 | |
|
495 | 494 | .progress { |
|
496 | 495 | border: 1px solid #D7D7D7; |
|
497 | 496 | border-collapse: collapse; |
|
498 | 497 | border-spacing: 0pt; |
|
499 | 498 | empty-cells: show; |
|
500 | 499 | padding: 3px; |
|
501 | 500 | width: 40em; |
|
502 | 501 | text-align: center; |
|
503 | 502 | } |
|
504 | 503 | |
|
505 | 504 | .progress td { height: 1em; } |
|
506 | 505 | .progress .closed { background: #BAE0BA none repeat scroll 0%; } |
|
507 | 506 | .progress .open { background: #FFF none repeat scroll 0%; } |
|
508 | 507 | |
|
509 | 508 | /***** Contextual links div *****/ |
|
510 | 509 | .contextual { |
|
511 | 510 | float: right; |
|
512 | 511 | font-size: 0.8em; |
|
513 | 512 | line-height: 16px; |
|
514 | 513 | padding: 2px; |
|
515 | 514 | } |
|
516 | 515 | |
|
517 | 516 | .contextual select, .contextual input { |
|
518 | 517 | font-size: 1em; |
|
519 | 518 | } |
|
520 | 519 | |
|
521 | 520 | /***** Gantt chart *****/ |
|
522 | 521 | .gantt_hdr { |
|
523 | 522 | position:absolute; |
|
524 | 523 | top:0; |
|
525 | 524 | height:16px; |
|
526 | 525 | border-top: 1px solid #c0c0c0; |
|
527 | 526 | border-bottom: 1px solid #c0c0c0; |
|
528 | 527 | border-right: 1px solid #c0c0c0; |
|
529 | 528 | text-align: center; |
|
530 | 529 | overflow: hidden; |
|
531 | 530 | } |
|
532 | 531 | |
|
533 | 532 | .task { |
|
534 | 533 | position: absolute; |
|
535 | 534 | height:8px; |
|
536 | 535 | font-size:0.8em; |
|
537 | 536 | color:#888; |
|
538 | 537 | padding:0; |
|
539 | 538 | margin:0; |
|
540 | 539 | line-height:0.8em; |
|
541 | 540 | } |
|
542 | 541 | |
|
543 | 542 | .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; } |
|
544 | 543 | .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; } |
|
545 | 544 | .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; } |
|
546 | 545 | .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; } |
|
547 | 546 | |
|
547 | /***** project list *****/ | |
|
548 | dl.projects dt { font-size: 120%; margin-top:1.2em; padding: 2px 2px 4px 2px; background-color:#fafbfc; } | |
|
549 | ||
|
548 | 550 | /***** Tooltips ******/ |
|
549 | 551 | .tooltip{position:relative;z-index:24;} |
|
550 | 552 | .tooltip:hover{z-index:25;color:#000;} |
|
551 | 553 | .tooltip span.tip{display: none; text-align:left;} |
|
552 | 554 | |
|
553 | 555 | div.tooltip:hover span.tip{ |
|
554 | 556 | display:block; |
|
555 | 557 | position:absolute; |
|
556 | 558 | top:12px; left:24px; width:270px; |
|
557 | 559 | border:1px solid #555; |
|
558 | 560 | background-color:#fff; |
|
559 | 561 | padding: 4px; |
|
560 | 562 | font-size: 0.8em; |
|
561 | 563 | color:#505050; |
|
562 | 564 | } |
|
563 | 565 | |
|
564 | 566 | /***** CSS FORM ******/ |
|
565 | 567 | .tabular p{ |
|
566 | 568 | margin: 0; |
|
567 | 569 | padding: 5px 0 8px 0; |
|
568 | 570 | padding-left: 180px; /*width of left column containing the label elements*/ |
|
569 | 571 | height: 1%; |
|
570 | 572 | clear:both; |
|
571 | 573 | } |
|
572 | 574 | |
|
573 | 575 | .tabular label{ |
|
574 | 576 | font-weight: bold; |
|
575 | 577 | float: left; |
|
576 | 578 | margin-left: -180px; /*width of left column*/ |
|
577 | 579 | margin-bottom: 10px; |
|
578 | 580 | width: 175px; /*width of labels. Should be smaller than left column to create some right |
|
579 | 581 | margin*/ |
|
580 | 582 | } |
|
581 | 583 | |
|
582 | 584 | .error { |
|
583 | 585 | color: #cc0000; |
|
584 | 586 | } |
|
585 | 587 | |
|
586 | 588 | #settings .tabular p{ padding-left: 300px; } |
|
587 | 589 | #settings .tabular label{ margin-left: -300px; width: 295px; } |
|
588 | 590 | |
|
589 | 591 | /*.threepxfix class below: |
|
590 | 592 | Targets IE6- ONLY. Adds 3 pixel indent for multi-line form contents. |
|
591 | 593 | to account for 3 pixel bug: http://www.positioniseverything.net/explorer/threepxtest.html |
|
592 | 594 | */ |
|
593 | 595 | |
|
594 | 596 | * html .threepxfix{ |
|
595 | 597 | margin-left: 3px; |
|
596 | 598 | } |
|
597 | 599 | |
|
598 | 600 | /***** Wiki sections ****/ |
|
599 | 601 | #content div.wiki { font-size: 110%} |
|
600 | 602 | |
|
601 | 603 | #content div.wiki h2, div.wiki h3 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; color:#606060; } |
|
602 | 604 | #content div.wiki h2 { font-size: 1.4em;} |
|
603 | 605 | #content div.wiki h3 { font-size: 1.2em;} |
|
604 | 606 | |
|
605 | 607 | div.wiki table { |
|
606 | 608 | border: 1px solid #505050; |
|
607 | 609 | border-collapse: collapse; |
|
608 | 610 | } |
|
609 | 611 | |
|
610 | 612 | div.wiki table, div.wiki td, div.wiki th { |
|
611 | 613 | border: 1px solid #bbb; |
|
612 | 614 | padding: 4px; |
|
613 | 615 | } |
|
614 | 616 | |
|
615 | 617 | div.wiki a { |
|
616 | 618 | background-position: 0% 60%; |
|
617 | 619 | background-repeat: no-repeat; |
|
618 | 620 | padding-left: 12px; |
|
619 | 621 | background-image: url(../images/external.png); |
|
620 | 622 | } |
|
621 | 623 | |
|
622 | 624 | div.wiki a.wiki-page, div.wiki a.issue, div.wiki a.changeset, div.wiki a.email, div.wiki div.toc a { |
|
623 | 625 | padding-left: 0; |
|
624 | 626 | background-image: none; |
|
625 | 627 | } |
|
626 | 628 | |
|
627 | 629 | div.wiki a.new { |
|
628 | 630 | color: #b73535; |
|
629 | 631 | } |
|
630 | 632 | |
|
631 | 633 | div.wiki code { |
|
632 | 634 | font-size: 1.2em; |
|
633 | 635 | } |
|
634 | 636 | |
|
635 | 637 | div.wiki img { |
|
636 | 638 | margin: 6px; |
|
637 | 639 | } |
|
638 | 640 | |
|
639 | 641 | div.wiki pre { |
|
640 | 642 | margin: 1em 1em 1em 1.6em; |
|
641 | 643 | padding: 2px; |
|
642 | 644 | background-color: #fafafa; |
|
643 | 645 | border: 1px solid #dadada; |
|
644 | 646 | } |
|
645 | 647 | |
|
646 | 648 | div.wiki div.toc { |
|
647 | 649 | background-color: #fdfed0; |
|
648 | 650 | border: 1px solid #dadada; |
|
649 | 651 | padding: 4px; |
|
650 | 652 | line-height: 1.1em; |
|
651 | 653 | margin-bottom: 12px; |
|
652 | 654 | float: left; |
|
653 | 655 | margin-right: 12px; |
|
654 | 656 | } |
|
655 | 657 | |
|
656 | 658 | div.wiki div.toc.right { |
|
657 | 659 | float: right; |
|
658 | 660 | margin-left: 12px; |
|
659 | 661 | margin-right: 0; |
|
660 | 662 | } |
|
661 | 663 | |
|
662 | 664 | div.wiki div.toc a { |
|
663 | 665 | display: block; |
|
664 | 666 | font-size: 0.9em; |
|
665 | 667 | font-weight: normal; |
|
666 | 668 | color: #606060; |
|
667 | 669 | } |
|
668 | 670 | |
|
669 | 671 | div.wiki div.toc a.heading2 { margin-left: 6px; } |
|
670 | 672 | div.wiki div.toc a.heading3 { margin-left: 12px; font-size: 0.8em; } |
|
671 | 673 | |
|
672 | 674 | div.wiki |
|
673 | 675 | |
|
674 | 676 | .diff_out{ |
|
675 | 677 | background: #fcc; |
|
676 | 678 | } |
|
677 | 679 | |
|
678 | 680 | .diff_in{ |
|
679 | 681 | background: #cfc; |
|
680 | 682 | } |
|
681 | 683 | |
|
682 | 684 | #preview .preview { background: #fafbfc url(../images/draft.png); } |
|
683 | 685 | |
|
684 | 686 | #ajax-indicator { |
|
685 | 687 | position: absolute; /* fixed not supported by IE */ |
|
686 | 688 | background-color:#eee; |
|
687 | 689 | border: 1px solid #bbb; |
|
688 | 690 | top:35%; |
|
689 | 691 | left:40%; |
|
690 | 692 | width:20%; |
|
691 | 693 | font-weight:bold; |
|
692 | 694 | text-align:center; |
|
693 | 695 | padding:0.6em; |
|
694 | 696 | z-index:100; |
|
695 | 697 | filter:alpha(opacity=50); |
|
696 | 698 | -moz-opacity:0.5; |
|
697 | 699 | opacity: 0.5; |
|
698 | 700 | -khtml-opacity: 0.5; |
|
699 | 701 | } |
|
700 | 702 | |
|
701 | 703 | html>body #ajax-indicator { position: fixed; } |
|
702 | 704 | |
|
703 | 705 | #ajax-indicator span { |
|
704 | 706 | background-position: 0% 40%; |
|
705 | 707 | background-repeat: no-repeat; |
|
706 | 708 | background-image: url(../images/loading.gif); |
|
707 | 709 | padding-left: 26px; |
|
708 | 710 | vertical-align: bottom; |
|
709 | 711 | } |
|
710 | 712 | |
|
711 | 713 | /***** Flash & error messages ****/ |
|
712 | 714 | #flash div, #errorExplanation { |
|
713 | 715 | padding: 4px 4px 4px 30px; |
|
714 | 716 | margin-bottom: 16px; |
|
715 | 717 | font-size: 1.1em; |
|
716 | 718 | border: 2px solid; |
|
717 | 719 | } |
|
718 | 720 | |
|
719 | 721 | #flash div.error, #errorExplanation { |
|
720 | 722 | background: url(../images/false.png) 8px 5px no-repeat; |
|
721 | 723 | background-color: #ffe3e3; |
|
722 | 724 | border-color: #dd0000; |
|
723 | 725 | color: #550000; |
|
724 | 726 | } |
|
725 | 727 | |
|
726 | 728 | #flash div.notice { |
|
727 | 729 | background: url(../images/true.png) 8px 5px no-repeat; |
|
728 | 730 | background-color: #dfffdf; |
|
729 | 731 | border-color: #9fcf9f; |
|
730 | 732 | color: #005f00; |
|
731 | 733 | } |
|
732 | 734 | |
|
733 | 735 | #errorExplanation ul { margin-bottom: 0px; } |
|
734 | 736 | #errorExplanation ul li { list-style: none; margin-left: -16px;} |
General Comments 0
You need to be logged in to leave comments.
Login now