##// END OF EJS Templates
Replaces del tags by a css style (a.issue.closed) for closed issue links....
Jean-Philippe Lang -
r1209:4f35ec97e88c
parent child
Show More
@@ -1,466 +1,466
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 module ApplicationHelper
19 19 include Redmine::WikiFormatting::Macros::Definitions
20 20
21 21 def current_role
22 22 @current_role ||= User.current.role_for_project(@project)
23 23 end
24 24
25 25 # Return true if user is authorized for controller/action, otherwise false
26 26 def authorize_for(controller, action)
27 27 User.current.allowed_to?({:controller => controller, :action => action}, @project)
28 28 end
29 29
30 30 # Display a link if user is authorized
31 31 def link_to_if_authorized(name, options = {}, html_options = nil, *parameters_for_method_reference)
32 32 link_to(name, options, html_options, *parameters_for_method_reference) if authorize_for(options[:controller] || params[:controller], options[:action])
33 33 end
34 34
35 35 # Display a link to user's account page
36 36 def link_to_user(user)
37 37 user ? link_to(user, :controller => 'account', :action => 'show', :id => user) : 'Anonymous'
38 38 end
39 39
40 40 def link_to_issue(issue)
41 41 link_to "#{issue.tracker.name} ##{issue.id}", :controller => "issues", :action => "show", :id => issue
42 42 end
43 43
44 44 def toggle_link(name, id, options={})
45 45 onclick = "Element.toggle('#{id}'); "
46 46 onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ")
47 47 onclick << "return false;"
48 48 link_to(name, "#", :onclick => onclick)
49 49 end
50 50
51 51 def show_and_goto_link(name, id, options={})
52 52 onclick = "Element.show('#{id}'); "
53 53 onclick << (options[:focus] ? "Form.Element.focus('#{options[:focus]}'); " : "this.blur(); ")
54 54 onclick << "Element.scrollTo('#{id}'); "
55 55 onclick << "return false;"
56 56 link_to(name, "#", options.merge(:onclick => onclick))
57 57 end
58 58
59 59 def image_to_function(name, function, html_options = {})
60 60 html_options.symbolize_keys!
61 61 tag(:input, html_options.merge({
62 62 :type => "image", :src => image_path(name),
63 63 :onclick => (html_options[:onclick] ? "#{html_options[:onclick]}; " : "") + "#{function};"
64 64 }))
65 65 end
66 66
67 67 def prompt_to_remote(name, text, param, url, html_options = {})
68 68 html_options[:onclick] = "promptToRemote('#{text}', '#{param}', '#{url_for(url)}'); return false;"
69 69 link_to name, {}, html_options
70 70 end
71 71
72 72 def format_date(date)
73 73 return nil unless date
74 74 # "Setting.date_format.size < 2" is a temporary fix (content of date_format setting changed)
75 75 @date_format ||= (Setting.date_format.blank? || Setting.date_format.size < 2 ? l(:general_fmt_date) : Setting.date_format)
76 76 date.strftime(@date_format)
77 77 end
78 78
79 79 def format_time(time, include_date = true)
80 80 return nil unless time
81 81 time = time.to_time if time.is_a?(String)
82 82 zone = User.current.time_zone
83 83 if time.utc?
84 84 local = zone ? zone.adjust(time) : time.getlocal
85 85 else
86 86 local = zone ? zone.adjust(time.getutc) : time
87 87 end
88 88 @date_format ||= (Setting.date_format.blank? || Setting.date_format.size < 2 ? l(:general_fmt_date) : Setting.date_format)
89 89 @time_format ||= (Setting.time_format.blank? ? l(:general_fmt_time) : Setting.time_format)
90 90 include_date ? local.strftime("#{@date_format} #{@time_format}") : local.strftime(@time_format)
91 91 end
92 92
93 93 def html_hours(text)
94 94 text.gsub(%r{(\d+)\.(\d+)}, '<span class="hours hours-int">\1</span><span class="hours hours-dec">.\2</span>')
95 95 end
96 96
97 97 def authoring(created, author)
98 98 time_tag = content_tag('acronym', distance_of_time_in_words(Time.now, created), :title => format_time(created))
99 99 l(:label_added_time_by, author || 'Anonymous', time_tag)
100 100 end
101 101
102 102 def l_or_humanize(s)
103 103 l_has_string?("label_#{s}".to_sym) ? l("label_#{s}".to_sym) : s.to_s.humanize
104 104 end
105 105
106 106 def day_name(day)
107 107 l(:general_day_names).split(',')[day-1]
108 108 end
109 109
110 110 def month_name(month)
111 111 l(:actionview_datehelper_select_month_names).split(',')[month-1]
112 112 end
113 113
114 114 def pagination_links_full(paginator, count=nil, options={})
115 115 page_param = options.delete(:page_param) || :page
116 116 url_param = params.dup
117 117 # don't reuse params if filters are present
118 118 url_param.clear if url_param.has_key?(:set_filter)
119 119
120 120 html = ''
121 121 html << link_to_remote(('&#171; ' + l(:label_previous)),
122 122 {:update => 'content',
123 123 :url => url_param.merge(page_param => paginator.current.previous),
124 124 :complete => 'window.scrollTo(0,0)'},
125 125 {:href => url_for(:params => url_param.merge(page_param => paginator.current.previous))}) + ' ' if paginator.current.previous
126 126
127 127 html << (pagination_links_each(paginator, options) do |n|
128 128 link_to_remote(n.to_s,
129 129 {:url => {:params => url_param.merge(page_param => n)},
130 130 :update => 'content',
131 131 :complete => 'window.scrollTo(0,0)'},
132 132 {:href => url_for(:params => url_param.merge(page_param => n))})
133 133 end || '')
134 134
135 135 html << ' ' + link_to_remote((l(:label_next) + ' &#187;'),
136 136 {:update => 'content',
137 137 :url => url_param.merge(page_param => paginator.current.next),
138 138 :complete => 'window.scrollTo(0,0)'},
139 139 {:href => url_for(:params => url_param.merge(page_param => paginator.current.next))}) if paginator.current.next
140 140
141 141 unless count.nil?
142 142 html << [" (#{paginator.current.first_item}-#{paginator.current.last_item}/#{count})", per_page_links(paginator.items_per_page)].compact.join(' | ')
143 143 end
144 144
145 145 html
146 146 end
147 147
148 148 def per_page_links(selected=nil)
149 149 url_param = params.dup
150 150 url_param.clear if url_param.has_key?(:set_filter)
151 151
152 152 links = Setting.per_page_options_array.collect do |n|
153 153 n == selected ? n : link_to_remote(n, {:update => "content", :url => params.dup.merge(:per_page => n)},
154 154 {:href => url_for(url_param.merge(:per_page => n))})
155 155 end
156 156 links.size > 1 ? l(:label_display_per_page, links.join(', ')) : nil
157 157 end
158 158
159 159 def html_title(*args)
160 160 if args.empty?
161 161 title = []
162 162 title << @project.name if @project
163 163 title += @html_title if @html_title
164 164 title << Setting.app_title
165 165 title.compact.join(' - ')
166 166 else
167 167 @html_title ||= []
168 168 @html_title += args
169 169 end
170 170 end
171 171
172 172 def accesskey(s)
173 173 Redmine::AccessKeys.key_for s
174 174 end
175 175
176 176 # Formats text according to system settings.
177 177 # 2 ways to call this method:
178 178 # * with a String: textilizable(text, options)
179 179 # * with an object and one of its attribute: textilizable(issue, :description, options)
180 180 def textilizable(*args)
181 181 options = args.last.is_a?(Hash) ? args.pop : {}
182 182 case args.size
183 183 when 1
184 184 obj = nil
185 185 text = args.shift
186 186 when 2
187 187 obj = args.shift
188 188 text = obj.send(args.shift).to_s
189 189 else
190 190 raise ArgumentError, 'invalid arguments to textilizable'
191 191 end
192 192 return '' if text.blank?
193 193
194 194 only_path = options.delete(:only_path) == false ? false : true
195 195
196 196 # when using an image link, try to use an attachment, if possible
197 197 attachments = options[:attachments] || (obj && obj.respond_to?(:attachments) ? obj.attachments : nil)
198 198
199 199 if attachments
200 200 text = text.gsub(/!((\<|\=|\>)?(\([^\)]+\))?(\[[^\]]+\])?(\{[^\}]+\})?)(\S+\.(gif|jpg|jpeg|png))!/) do |m|
201 201 style = $1
202 202 filename = $6
203 203 rf = Regexp.new(filename, Regexp::IGNORECASE)
204 204 # search for the picture in attachments
205 205 if found = attachments.detect { |att| att.filename =~ rf }
206 206 image_url = url_for :only_path => only_path, :controller => 'attachments', :action => 'download', :id => found.id
207 207 "!#{style}#{image_url}!"
208 208 else
209 209 "!#{style}#{filename}!"
210 210 end
211 211 end
212 212 end
213 213
214 214 text = (Setting.text_formatting == 'textile') ?
215 215 Redmine::WikiFormatting.to_html(text) { |macro, args| exec_macro(macro, obj, args) } :
216 216 simple_format(auto_link(h(text)))
217 217
218 218 # different methods for formatting wiki links
219 219 case options[:wiki_links]
220 220 when :local
221 221 # used for local links to html files
222 222 format_wiki_link = Proc.new {|project, title| "#{title}.html" }
223 223 when :anchor
224 224 # used for single-file wiki export
225 225 format_wiki_link = Proc.new {|project, title| "##{title}" }
226 226 else
227 227 format_wiki_link = Proc.new {|project, title| url_for(:only_path => only_path, :controller => 'wiki', :action => 'index', :id => project, :page => title) }
228 228 end
229 229
230 230 project = options[:project] || @project || (obj && obj.respond_to?(:project) ? obj.project : nil)
231 231
232 232 # Wiki links
233 233 #
234 234 # Examples:
235 235 # [[mypage]]
236 236 # [[mypage|mytext]]
237 237 # wiki links can refer other project wikis, using project name or identifier:
238 238 # [[project:]] -> wiki starting page
239 239 # [[project:|mytext]]
240 240 # [[project:mypage]]
241 241 # [[project:mypage|mytext]]
242 242 text = text.gsub(/(!)?(\[\[([^\]\|]+)(\|([^\]\|]+))?\]\])/) do |m|
243 243 link_project = project
244 244 esc, all, page, title = $1, $2, $3, $5
245 245 if esc.nil?
246 246 if page =~ /^([^\:]+)\:(.*)$/
247 247 link_project = Project.find_by_name($1) || Project.find_by_identifier($1)
248 248 page = $2
249 249 title ||= $1 if page.blank?
250 250 end
251 251
252 252 if link_project && link_project.wiki
253 253 # check if page exists
254 254 wiki_page = link_project.wiki.find_page(page)
255 255 link_to((title || page), format_wiki_link.call(link_project, Wiki.titleize(page)),
256 256 :class => ('wiki-page' + (wiki_page ? '' : ' new')))
257 257 else
258 258 # project or wiki doesn't exist
259 259 title || page
260 260 end
261 261 else
262 262 all
263 263 end
264 264 end
265 265
266 266 # Redmine links
267 267 #
268 268 # Examples:
269 269 # Issues:
270 270 # #52 -> Link to issue #52
271 271 # Changesets:
272 272 # r52 -> Link to revision 52
273 273 # Documents:
274 274 # document#17 -> Link to document with id 17
275 275 # document:Greetings -> Link to the document with title "Greetings"
276 276 # document:"Some document" -> Link to the document with title "Some document"
277 277 # Versions:
278 278 # version#3 -> Link to version with id 3
279 279 # version:1.0.0 -> Link to version named "1.0.0"
280 280 # version:"1.0 beta 2" -> Link to version named "1.0 beta 2"
281 281 # Attachments:
282 282 # attachment:file.zip -> Link to the attachment of the current object named file.zip
283 283 text = text.gsub(%r{([\s\(,-^])(!)?(attachment|document|version)?((#|r)(\d+)|(:)([^"][^\s<>]+|"[^"]+"))(?=[[:punct:]]|\s|<|$)}) do |m|
284 284 leading, esc, prefix, sep, oid = $1, $2, $3, $5 || $7, $6 || $8
285 285 link = nil
286 286 if esc.nil?
287 287 if prefix.nil? && sep == 'r'
288 288 if project && (changeset = project.changesets.find_by_revision(oid))
289 289 link = link_to("r#{oid}", {:only_path => only_path, :controller => 'repositories', :action => 'revision', :id => project.id, :rev => oid},
290 290 :class => 'changeset',
291 291 :title => truncate(changeset.comments, 100))
292 292 end
293 293 elsif sep == '#'
294 294 oid = oid.to_i
295 295 case prefix
296 296 when nil
297 297 if issue = Issue.find_by_id(oid, :include => [:project, :status], :conditions => Project.visible_by(User.current))
298 298 link = link_to("##{oid}", {:only_path => only_path, :controller => 'issues', :action => 'show', :id => oid},
299 :class => 'issue',
299 :class => (issue.closed? ? 'issue closed' : 'issue'),
300 300 :title => "#{truncate(issue.subject, 100)} (#{issue.status.name})")
301 301 link = content_tag('del', link) if issue.closed?
302 302 end
303 303 when 'document'
304 304 if document = Document.find_by_id(oid, :include => [:project], :conditions => Project.visible_by(User.current))
305 305 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
306 306 :class => 'document'
307 307 end
308 308 when 'version'
309 309 if version = Version.find_by_id(oid, :include => [:project], :conditions => Project.visible_by(User.current))
310 310 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
311 311 :class => 'version'
312 312 end
313 313 end
314 314 elsif sep == ':'
315 315 # removes the double quotes if any
316 316 name = oid.gsub(%r{^"(.*)"$}, "\\1")
317 317 case prefix
318 318 when 'document'
319 319 if project && document = project.documents.find_by_title(name)
320 320 link = link_to h(document.title), {:only_path => only_path, :controller => 'documents', :action => 'show', :id => document},
321 321 :class => 'document'
322 322 end
323 323 when 'version'
324 324 if project && version = project.versions.find_by_name(name)
325 325 link = link_to h(version.name), {:only_path => only_path, :controller => 'versions', :action => 'show', :id => version},
326 326 :class => 'version'
327 327 end
328 328 when 'attachment'
329 329 if attachments && attachment = attachments.detect {|a| a.filename == name }
330 330 link = link_to h(attachment.filename), {:only_path => only_path, :controller => 'attachments', :action => 'download', :id => attachment},
331 331 :class => 'attachment'
332 332 end
333 333 end
334 334 end
335 335 end
336 336 leading + (link || "#{prefix}#{sep}#{oid}")
337 337 end
338 338
339 339 text
340 340 end
341 341
342 342 # Same as Rails' simple_format helper without using paragraphs
343 343 def simple_format_without_paragraph(text)
344 344 text.to_s.
345 345 gsub(/\r\n?/, "\n"). # \r\n and \r -> \n
346 346 gsub(/\n\n+/, "<br /><br />"). # 2+ newline -> 2 br
347 347 gsub(/([^\n]\n)(?=[^\n])/, '\1<br />') # 1 newline -> br
348 348 end
349 349
350 350 def error_messages_for(object_name, options = {})
351 351 options = options.symbolize_keys
352 352 object = instance_variable_get("@#{object_name}")
353 353 if object && !object.errors.empty?
354 354 # build full_messages here with controller current language
355 355 full_messages = []
356 356 object.errors.each do |attr, msg|
357 357 next if msg.nil?
358 358 msg = msg.first if msg.is_a? Array
359 359 if attr == "base"
360 360 full_messages << l(msg)
361 361 else
362 362 full_messages << "&#171; " + (l_has_string?("field_" + attr) ? l("field_" + attr) : object.class.human_attribute_name(attr)) + " &#187; " + l(msg) unless attr == "custom_values"
363 363 end
364 364 end
365 365 # retrieve custom values error messages
366 366 if object.errors[:custom_values]
367 367 object.custom_values.each do |v|
368 368 v.errors.each do |attr, msg|
369 369 next if msg.nil?
370 370 msg = msg.first if msg.is_a? Array
371 371 full_messages << "&#171; " + v.custom_field.name + " &#187; " + l(msg)
372 372 end
373 373 end
374 374 end
375 375 content_tag("div",
376 376 content_tag(
377 377 options[:header_tag] || "span", lwr(:gui_validation_error, full_messages.length) + ":"
378 378 ) +
379 379 content_tag("ul", full_messages.collect { |msg| content_tag("li", msg) }),
380 380 "id" => options[:id] || "errorExplanation", "class" => options[:class] || "errorExplanation"
381 381 )
382 382 else
383 383 ""
384 384 end
385 385 end
386 386
387 387 def lang_options_for_select(blank=true)
388 388 (blank ? [["(auto)", ""]] : []) +
389 389 GLoc.valid_languages.collect{|lang| [ ll(lang.to_s, :general_lang_name), lang.to_s]}.sort{|x,y| x.last <=> y.last }
390 390 end
391 391
392 392 def label_tag_for(name, option_tags = nil, options = {})
393 393 label_text = l(("field_"+field.to_s.gsub(/\_id$/, "")).to_sym) + (options.delete(:required) ? @template.content_tag("span", " *", :class => "required"): "")
394 394 content_tag("label", label_text)
395 395 end
396 396
397 397 def labelled_tabular_form_for(name, object, options, &proc)
398 398 options[:html] ||= {}
399 399 options[:html][:class] = 'tabular' unless options[:html].has_key?(:class)
400 400 form_for(name, object, options.merge({ :builder => TabularFormBuilder, :lang => current_language}), &proc)
401 401 end
402 402
403 403 def check_all_links(form_name)
404 404 link_to_function(l(:button_check_all), "checkAll('#{form_name}', true)") +
405 405 " | " +
406 406 link_to_function(l(:button_uncheck_all), "checkAll('#{form_name}', false)")
407 407 end
408 408
409 409 def progress_bar(pcts, options={})
410 410 pcts = [pcts, pcts] unless pcts.is_a?(Array)
411 411 pcts[1] = pcts[1] - pcts[0]
412 412 pcts << (100 - pcts[1] - pcts[0])
413 413 width = options[:width] || '100px;'
414 414 legend = options[:legend] || ''
415 415 content_tag('table',
416 416 content_tag('tr',
417 417 (pcts[0] > 0 ? content_tag('td', '', :width => "#{pcts[0].floor}%;", :class => 'closed') : '') +
418 418 (pcts[1] > 0 ? content_tag('td', '', :width => "#{pcts[1].floor}%;", :class => 'done') : '') +
419 419 (pcts[2] > 0 ? content_tag('td', '', :width => "#{pcts[2].floor}%;", :class => 'todo') : '')
420 420 ), :class => 'progress', :style => "width: #{width};") +
421 421 content_tag('p', legend, :class => 'pourcent')
422 422 end
423 423
424 424 def context_menu_link(name, url, options={})
425 425 options[:class] ||= ''
426 426 if options.delete(:selected)
427 427 options[:class] << ' icon-checked disabled'
428 428 options[:disabled] = true
429 429 end
430 430 if options.delete(:disabled)
431 431 options.delete(:method)
432 432 options.delete(:confirm)
433 433 options.delete(:onclick)
434 434 options[:class] << ' disabled'
435 435 url = '#'
436 436 end
437 437 link_to name, url, options
438 438 end
439 439
440 440 def calendar_for(field_id)
441 441 image_tag("calendar.png", {:id => "#{field_id}_trigger",:class => "calendar-trigger"}) +
442 442 javascript_tag("Calendar.setup({inputField : '#{field_id}', ifFormat : '%Y-%m-%d', button : '#{field_id}_trigger' });")
443 443 end
444 444
445 445 def wikitoolbar_for(field_id)
446 446 return '' unless Setting.text_formatting == 'textile'
447 447
448 448 help_link = l(:setting_text_formatting) + ': ' +
449 449 link_to(l(:label_help), compute_public_path('wiki_syntax', 'help', 'html'),
450 450 :onclick => "window.open(\"#{ compute_public_path('wiki_syntax', 'help', 'html') }\", \"\", \"resizable=yes, location=no, width=300, height=640, menubar=no, status=no, scrollbars=yes\"); return false;")
451 451
452 452 javascript_include_tag('jstoolbar/jstoolbar') +
453 453 javascript_include_tag("jstoolbar/lang/jstoolbar-#{current_language}") +
454 454 javascript_tag("var toolbar = new jsToolBar($('#{field_id}')); toolbar.setHelpLink('#{help_link}'); toolbar.draw();")
455 455 end
456 456
457 457 def content_for(name, content = nil, &block)
458 458 @has_content ||= {}
459 459 @has_content[name] = true
460 460 super(name, content, &block)
461 461 end
462 462
463 463 def has_content?(name)
464 464 (@has_content && @has_content[name]) || false
465 465 end
466 466 end
@@ -1,54 +1,50
1 1 <h2><%=l(:label_roadmap)%></h2>
2 2
3 3 <% if @versions.empty? %>
4 4 <p class="nodata"><%= l(:label_no_data) %></p>
5 5 <% else %>
6 6 <div id="roadmap">
7 7 <% @versions.each do |version| %>
8 8 <%= tag 'a', :name => version.name %>
9 9 <h3 class="icon22 icon22-package"><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></h3>
10 10 <%= render :partial => 'versions/overview', :locals => {:version => version} %>
11 11 <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
12 12
13 13 <% issues = version.fixed_issues.find(:all,
14 14 :include => [:status, :tracker],
15 15 :conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
16 16 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
17 17 issues ||= []
18 18 %>
19 19 <% if issues.size > 0 %>
20 20 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
21 21 <ul>
22 <% issues.each do |issue| %>
23 <li>
24 <%= link = link_to_issue(issue)
25 issue.status.is_closed? ? content_tag("del", link) : link %>: <%=h issue.subject %>
26 <%= content_tag "em", "(#{l(:label_closed_issues)})" if issue.status.is_closed? %>
27 </li>
28 <% end %>
22 <%- issues.each do |issue| -%>
23 <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
24 <%- end -%>
29 25 </ul>
30 26 </fieldset>
31 27 <% end %>
32 28 <% end %>
33 29 </div>
34 30 <% end %>
35 31
36 32 <% content_for :sidebar do %>
37 33 <% form_tag do %>
38 34 <h3><%= l(:label_roadmap) %></h3>
39 35 <% @trackers.each do |tracker| %>
40 36 <label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
41 37 <%= tracker.name %></label><br />
42 38 <% end %>
43 39 <br />
44 40 <label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
45 41 <p><%= submit_tag l(:button_apply), :class => 'button-small' %></p>
46 42 <% end %>
47 43
48 44 <h3><%= l(:label_version_plural) %></h3>
49 45 <% @versions.each do |version| %>
50 46 <%= link_to version.name, :anchor => version.name %><br />
51 47 <% end %>
52 48 <% end %>
53 49
54 50 <% html_title(l(:label_roadmap)) %>
@@ -1,49 +1,48
1 1 <div class="contextual">
2 2 <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
3 3 </div>
4 4
5 5 <h2><%= h(@version.name) %></h2>
6 6
7 7 <div id="version-summary">
8 8 <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
9 9 <fieldset><legend><%= l(:label_time_tracking) %></legend>
10 10 <table>
11 11 <tr>
12 12 <td width="130px" align="right"><%= l(:field_estimated_hours) %></td>
13 13 <td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(lwr(:label_f_hour, @version.estimated_hours)) %></td>
14 14 </tr>
15 15 <% if User.current.allowed_to?(:view_time_entries, @project) %>
16 16 <tr>
17 17 <td width="130px" align="right"><%= l(:label_spent_time) %></td>
18 18 <td width="240px" class="total-hours"><%= html_hours(lwr(:label_f_hour, @version.spent_hours)) %></td>
19 19 </tr>
20 20 <% end %>
21 21 </table>
22 22 </fieldset>
23 23 <% end %>
24 24
25 25 <div id="status_by">
26 26 <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
27 27 </div>
28 28 </div>
29 29
30 30 <div id="roadmap">
31 31 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
32 32 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
33 33
34 34 <% issues = @version.fixed_issues.find(:all,
35 35 :include => [:status, :tracker],
36 36 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
37 37 <% if issues.size > 0 %>
38 38 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
39 39 <ul>
40 40 <% issues.each do |issue| -%>
41 <li><%= link = link_to_issue(issue)
42 issue.status.is_closed? ? content_tag("del", link) : link %>: <%=h issue.subject %></li>
41 <li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
43 42 <% end -%>
44 43 </ul>
45 44 </fieldset>
46 45 <% end %>
47 46 </div>
48 47
49 48 <% html_title @version.name %>
@@ -1,572 +1,574
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: 12px;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.5em; padding: 2px 6px 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; padding-right: 4px;}
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 #quick-search {float:right;}
29 29
30 30 #main-menu {position: absolute; bottom: 0px; left:6px; margin-right: -500px;}
31 31 #main-menu ul {margin: 0; padding: 0;}
32 32 #main-menu li {
33 33 float:left;
34 34 list-style-type:none;
35 35 margin: 0px 10px 0px 0px;
36 36 padding: 0px 0px 0px 0px;
37 37 white-space:nowrap;
38 38 }
39 39 #main-menu li a {
40 40 display: block;
41 41 color: #fff;
42 42 text-decoration: none;
43 43 margin: 0;
44 44 padding: 4px 4px 4px 4px;
45 45 background: #2C4056;
46 46 }
47 47 #main-menu li a:hover, #main-menu li a.selected {background:#759FCF;}
48 48
49 49 #main {background: url(../images/mainbg.png) repeat-x; background-color:#EEEEEE;}
50 50
51 51 #sidebar{ float: right; width: 17%; position: relative; z-index: 9; min-height: 600px; padding: 0; margin: 0;}
52 52 * html #sidebar{ width: 17%; }
53 53 #sidebar h3{ font-size: 14px; margin-top:14px; color: #666; }
54 54 #sidebar hr{ width: 100%; margin: 0 auto; height: 1px; background: #ccc; border: 0; }
55 55 * html #sidebar hr{ width: 95%; position: relative; left: -6px; color: #ccc; }
56 56
57 57 #content { width: 80%; background: url(../images/contentbg.png) repeat-x; background-color: #fff; margin: 0px; border-right: 1px solid #ddd; padding: 6px 10px 10px 10px; z-index: 10; height:600px; min-height: 600px;}
58 58 * html #content{ width: 80%; padding-left: 0; margin-top: 0px; padding: 6px 10px 10px 10px;}
59 59 html>body #content {
60 60 height: auto;
61 61 min-height: 600px;
62 62 }
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
73 73 .clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
74 74
75 75 /***** Links *****/
76 76 a, a:link, a:visited{ color: #2A5685; text-decoration: none; }
77 77 a:hover, a:active{ color: #c61a1a; text-decoration: underline;}
78 78 a img{ border: 0; }
79 79
80 a.issue.closed, .issue.closed a { text-decoration: line-through; }
81
80 82 /***** Tables *****/
81 83 table.list { border: 1px solid #e4e4e4; border-collapse: collapse; width: 100%; margin-bottom: 4px; }
82 84 table.list th { background-color:#EEEEEE; padding: 4px; white-space:nowrap; }
83 85 table.list td { overflow: hidden; vertical-align: top;}
84 86 table.list td.id { width: 2%; text-align: center;}
85 87 table.list td.checkbox { width: 15px; padding: 0px;}
86 88
87 89 tr.issue { text-align: center; white-space: nowrap; }
88 90 tr.issue td.subject, tr.issue td.category { white-space: normal; }
89 91 tr.issue td.subject { text-align: left; }
90 92 tr.issue td.done_ratio table.progress { margin-left:auto; margin-right: auto;}
91 93
92 94 tr.entry { border: 1px solid #f8f8f8; }
93 95 tr.entry td { white-space: nowrap; }
94 96 tr.entry td.filename { width: 30%; }
95 97 tr.entry td.size { text-align: right; font-size: 90%; }
96 98 tr.entry td.revision, tr.entry td.author { text-align: center; }
97 99 tr.entry td.age { text-align: right; }
98 100
99 101 tr.changeset td.author { text-align: center; width: 15%; }
100 102 tr.changeset td.committed_on { text-align: center; width: 15%; }
101 103
102 104 tr.message { height: 2.6em; }
103 105 tr.message td.last_message { font-size: 80%; }
104 106 tr.message.locked td.subject a { background-image: url(../images/locked.png); }
105 107 tr.message.sticky td.subject a { background-image: url(../images/sticky.png); font-weight: bold; }
106 108
107 109 tr.user td { width:13%; }
108 110 tr.user td.email { width:18%; }
109 111 tr.user td { white-space: nowrap; }
110 112 tr.user.locked, tr.user.registered { color: #aaa; }
111 113 tr.user.locked a, tr.user.registered a { color: #aaa; }
112 114
113 115 tr.time-entry { text-align: center; white-space: nowrap; }
114 116 tr.time-entry td.subject, tr.time-entry td.comments { text-align: left; }
115 117 tr.time-entry td.hours { text-align: right; font-weight: bold; padding-right: 0.5em; }
116 118 tr.time-entry .hours-dec { font-size: 0.9em; }
117 119
118 120 table.list tbody tr:hover { background-color:#ffffdd; }
119 121 table td {padding:2px;}
120 122 table p {margin:0;}
121 123 .odd {background-color:#f6f7f8;}
122 124 .even {background-color: #fff;}
123 125
124 126 .highlight { background-color: #FCFD8D;}
125 127 .highlight.token-1 { background-color: #faa;}
126 128 .highlight.token-2 { background-color: #afa;}
127 129 .highlight.token-3 { background-color: #aaf;}
128 130
129 131 .box{
130 132 padding:6px;
131 133 margin-bottom: 10px;
132 134 background-color:#f6f6f6;
133 135 color:#505050;
134 136 line-height:1.5em;
135 137 border: 1px solid #e4e4e4;
136 138 }
137 139
138 140 div.square {
139 141 border: 1px solid #999;
140 142 float: left;
141 143 margin: .3em .4em 0 .4em;
142 144 overflow: hidden;
143 145 width: .6em; height: .6em;
144 146 }
145 147
146 148 .contextual {float:right; white-space: nowrap; line-height:1.4em;margin-top:5px; padding-left: 10px; font-size:0.9em;}
147 149 .contextual input {font-size:0.9em;}
148 150
149 151 .splitcontentleft{float:left; width:49%;}
150 152 .splitcontentright{float:right; width:49%;}
151 153 form {display: inline;}
152 154 input, select {vertical-align: middle; margin-top: 1px; margin-bottom: 1px;}
153 155 fieldset {border: 1px solid #e4e4e4; margin:0;}
154 156 legend {color: #484848;}
155 157 hr { width: 100%; height: 1px; background: #ccc; border: 0;}
156 158 textarea.wiki-edit { width: 99%; }
157 159 li p {margin-top: 0;}
158 160 div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;}
159 161
160 162 div#issue-changesets {float:right; width:45%; margin-left: 1em; margin-bottom: 1em; background: #fff; padding-left: 1em; font-size: 90%;}
161 163 div#issue-changesets .changeset { padding: 4px;}
162 164 div#issue-changesets .changeset { border-bottom: 1px solid #ddd; }
163 165 div#issue-changesets p { margin-top: 0; margin-bottom: 1em;}
164 166
165 167 div#activity dl { margin-left: 2em; }
166 168 div#activity dd { margin-bottom: 1em; }
167 169 div#activity dt { margin-bottom: 1px; }
168 170 div#activity dt .time { color: #777; font-size: 80%; }
169 171 div#activity dd .description { font-style: italic; }
170 172
171 173 div#roadmap fieldset.related-issues { margin-bottom: 1em; }
172 174 div#roadmap fieldset.related-issues ul { margin-top: 0.3em; margin-bottom: 0.3em; }
173 175 div#roadmap .wiki h1:first-child { display: none; }
174 176 div#roadmap .wiki h1 { font-size: 120%; }
175 177 div#roadmap .wiki h2 { font-size: 110%; }
176 178
177 179 div#version-summary { float:right; width:380px; margin-left: 16px; margin-bottom: 16px; background-color: #fff; }
178 180 div#version-summary fieldset { margin-bottom: 1em; }
179 181 div#version-summary .total-hours { text-align: right; }
180 182
181 183 table#time-report td.hours { text-align: right; padding-right: 0.5em; }
182 184 table#time-report tbody tr { font-style: italic; color: #777; }
183 185 table#time-report tbody tr.last-level { font-style: normal; color: #555; }
184 186 table#time-report tbody tr.total { font-style: normal; font-weight: bold; color: #555; background-color:#EEEEEE; }
185 187 table#time-report .hours-dec { font-size: 0.9em; }
186 188
187 189 .total-hours { font-size: 110%; font-weight: bold; }
188 190 .total-hours span.hours-int { font-size: 120%; }
189 191
190 192 .autoscroll {overflow-x: auto; padding:1px; width:100%; margin-bottom: 1.2em;}
191 193 #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; }
192 194
193 195 .pagination {font-size: 90%}
194 196 p.pagination {margin-top:8px;}
195 197
196 198 /***** Tabular forms ******/
197 199 .tabular p{
198 200 margin: 0;
199 201 padding: 5px 0 8px 0;
200 202 padding-left: 180px; /*width of left column containing the label elements*/
201 203 height: 1%;
202 204 clear:left;
203 205 }
204 206
205 207 .tabular label{
206 208 font-weight: bold;
207 209 float: left;
208 210 text-align: right;
209 211 margin-left: -180px; /*width of left column*/
210 212 width: 175px; /*width of labels. Should be smaller than left column to create some right
211 213 margin*/
212 214 }
213 215
214 216 .tabular label.floating{
215 217 font-weight: normal;
216 218 margin-left: 0px;
217 219 text-align: left;
218 220 width: 200px;
219 221 }
220 222
221 223 #preview fieldset {margin-top: 1em; background: url(../images/draft.png)}
222 224
223 225 .tabular.settings p{ padding-left: 300px; }
224 226 .tabular.settings label{ margin-left: -300px; width: 295px; }
225 227
226 228 .required {color: #bb0000;}
227 229 .summary {font-style: italic;}
228 230
229 231 #attachments_fields input[type=text] {margin-left: 8px; }
230 232
231 233 div.attachments p { margin:4px 0 2px 0; }
232 234 div.attachments img { vertical-align: middle; }
233 235 div.attachments span.author { font-size: 0.9em; color: #888; }
234 236
235 237 p.other-formats { text-align: right; font-size:0.9em; color: #666; }
236 238 .other-formats span + span:before { content: "| "; }
237 239
238 240 a.feed { background: url(../images/feed.png) no-repeat 1px 50%; padding: 2px 0px 3px 16px; }
239 241
240 242 /***** Flash & error messages ****/
241 243 #errorExplanation, div.flash, .nodata {
242 244 padding: 4px 4px 4px 30px;
243 245 margin-bottom: 12px;
244 246 font-size: 1.1em;
245 247 border: 2px solid;
246 248 }
247 249
248 250 div.flash {margin-top: 8px;}
249 251
250 252 div.flash.error, #errorExplanation {
251 253 background: url(../images/false.png) 8px 5px no-repeat;
252 254 background-color: #ffe3e3;
253 255 border-color: #dd0000;
254 256 color: #550000;
255 257 }
256 258
257 259 div.flash.notice {
258 260 background: url(../images/true.png) 8px 5px no-repeat;
259 261 background-color: #dfffdf;
260 262 border-color: #9fcf9f;
261 263 color: #005f00;
262 264 }
263 265
264 266 .nodata {
265 267 text-align: center;
266 268 background-color: #FFEBC1;
267 269 border-color: #FDBF3B;
268 270 color: #A6750C;
269 271 }
270 272
271 273 #errorExplanation ul { font-size: 0.9em;}
272 274
273 275 /***** Ajax indicator ******/
274 276 #ajax-indicator {
275 277 position: absolute; /* fixed not supported by IE */
276 278 background-color:#eee;
277 279 border: 1px solid #bbb;
278 280 top:35%;
279 281 left:40%;
280 282 width:20%;
281 283 font-weight:bold;
282 284 text-align:center;
283 285 padding:0.6em;
284 286 z-index:100;
285 287 filter:alpha(opacity=50);
286 288 opacity: 0.5;
287 289 }
288 290
289 291 html>body #ajax-indicator { position: fixed; }
290 292
291 293 #ajax-indicator span {
292 294 background-position: 0% 40%;
293 295 background-repeat: no-repeat;
294 296 background-image: url(../images/loading.gif);
295 297 padding-left: 26px;
296 298 vertical-align: bottom;
297 299 }
298 300
299 301 /***** Calendar *****/
300 302 table.cal {border-collapse: collapse; width: 100%; margin: 8px 0 6px 0;border: 1px solid #d7d7d7;}
301 303 table.cal thead th {width: 14%;}
302 304 table.cal tbody tr {height: 100px;}
303 305 table.cal th { background-color:#EEEEEE; padding: 4px; }
304 306 table.cal td {border: 1px solid #d7d7d7; vertical-align: top; font-size: 0.9em;}
305 307 table.cal td p.day-num {font-size: 1.1em; text-align:right;}
306 308 table.cal td.odd p.day-num {color: #bbb;}
307 309 table.cal td.today {background:#ffffdd;}
308 310 table.cal td.today p.day-num {font-weight: bold;}
309 311
310 312 /***** Tooltips ******/
311 313 .tooltip{position:relative;z-index:24;}
312 314 .tooltip:hover{z-index:25;color:#000;}
313 315 .tooltip span.tip{display: none; text-align:left;}
314 316
315 317 div.tooltip:hover span.tip{
316 318 display:block;
317 319 position:absolute;
318 320 top:12px; left:24px; width:270px;
319 321 border:1px solid #555;
320 322 background-color:#fff;
321 323 padding: 4px;
322 324 font-size: 0.8em;
323 325 color:#505050;
324 326 }
325 327
326 328 /***** Progress bar *****/
327 329 table.progress {
328 330 border: 1px solid #D7D7D7;
329 331 border-collapse: collapse;
330 332 border-spacing: 0pt;
331 333 empty-cells: show;
332 334 text-align: center;
333 335 float:left;
334 336 margin: 1px 6px 1px 0px;
335 337 }
336 338
337 339 table.progress td { height: 0.9em; }
338 340 table.progress td.closed { background: #BAE0BA none repeat scroll 0%; }
339 341 table.progress td.done { background: #DEF0DE none repeat scroll 0%; }
340 342 table.progress td.open { background: #FFF none repeat scroll 0%; }
341 343 p.pourcent {font-size: 80%;}
342 344 p.progress-info {clear: left; font-style: italic; font-size: 80%;}
343 345
344 346 /***** Tabs *****/
345 347 #content .tabs {height: 2.6em; border-bottom: 1px solid #bbbbbb; margin-bottom:1.2em; position:relative;}
346 348 #content .tabs ul {margin:0; position:absolute; bottom:-2px; padding-left:1em;}
347 349 #content .tabs>ul { bottom:-1px; } /* others */
348 350 #content .tabs ul li {
349 351 float:left;
350 352 list-style-type:none;
351 353 white-space:nowrap;
352 354 margin-right:8px;
353 355 background:#fff;
354 356 }
355 357 #content .tabs ul li a{
356 358 display:block;
357 359 font-size: 0.9em;
358 360 text-decoration:none;
359 361 line-height:1.3em;
360 362 padding:4px 6px 4px 6px;
361 363 border: 1px solid #ccc;
362 364 border-bottom: 1px solid #bbbbbb;
363 365 background-color: #eeeeee;
364 366 color:#777;
365 367 font-weight:bold;
366 368 }
367 369
368 370 #content .tabs ul li a:hover {
369 371 background-color: #ffffdd;
370 372 text-decoration:none;
371 373 }
372 374
373 375 #content .tabs ul li a.selected {
374 376 background-color: #fff;
375 377 border: 1px solid #bbbbbb;
376 378 border-bottom: 1px solid #fff;
377 379 }
378 380
379 381 #content .tabs ul li a.selected:hover {
380 382 background-color: #fff;
381 383 }
382 384
383 385 /***** Diff *****/
384 386 .diff_out { background: #fcc; }
385 387 .diff_in { background: #cfc; }
386 388
387 389 /***** Wiki *****/
388 390 div.wiki table {
389 391 border: 1px solid #505050;
390 392 border-collapse: collapse;
391 393 }
392 394
393 395 div.wiki table, div.wiki td, div.wiki th {
394 396 border: 1px solid #bbb;
395 397 padding: 4px;
396 398 }
397 399
398 400 div.wiki .external {
399 401 background-position: 0% 60%;
400 402 background-repeat: no-repeat;
401 403 padding-left: 12px;
402 404 background-image: url(../images/external.png);
403 405 }
404 406
405 407 div.wiki a.new {
406 408 color: #b73535;
407 409 }
408 410
409 411 div.wiki pre {
410 412 margin: 1em 1em 1em 1.6em;
411 413 padding: 2px;
412 414 background-color: #fafafa;
413 415 border: 1px solid #dadada;
414 416 width:95%;
415 417 overflow-x: auto;
416 418 }
417 419
418 420 div.wiki div.toc {
419 421 background-color: #ffffdd;
420 422 border: 1px solid #e4e4e4;
421 423 padding: 4px;
422 424 line-height: 1.2em;
423 425 margin-bottom: 12px;
424 426 margin-right: 12px;
425 427 display: table
426 428 }
427 429 * html div.wiki div.toc { width: 50%; } /* IE6 doesn't autosize div */
428 430
429 431 div.wiki div.toc.right { float: right; margin-left: 12px; margin-right: 0; width: auto; }
430 432 div.wiki div.toc.left { float: left; margin-right: 12px; margin-left: 0; width: auto; }
431 433
432 434 div.wiki div.toc a {
433 435 display: block;
434 436 font-size: 0.9em;
435 437 font-weight: normal;
436 438 text-decoration: none;
437 439 color: #606060;
438 440 }
439 441 div.wiki div.toc a:hover { color: #c61a1a; text-decoration: underline;}
440 442
441 443 div.wiki div.toc a.heading2 { margin-left: 6px; }
442 444 div.wiki div.toc a.heading3 { margin-left: 12px; font-size: 0.8em; }
443 445
444 446 /***** My page layout *****/
445 447 .block-receiver {
446 448 border:1px dashed #c0c0c0;
447 449 margin-bottom: 20px;
448 450 padding: 15px 0 15px 0;
449 451 }
450 452
451 453 .mypage-box {
452 454 margin:0 0 20px 0;
453 455 color:#505050;
454 456 line-height:1.5em;
455 457 }
456 458
457 459 .handle {
458 460 cursor: move;
459 461 }
460 462
461 463 a.close-icon {
462 464 display:block;
463 465 margin-top:3px;
464 466 overflow:hidden;
465 467 width:12px;
466 468 height:12px;
467 469 background-repeat: no-repeat;
468 470 cursor:pointer;
469 471 background-image:url('../images/close.png');
470 472 }
471 473
472 474 a.close-icon:hover {
473 475 background-image:url('../images/close_hl.png');
474 476 }
475 477
476 478 /***** Gantt chart *****/
477 479 .gantt_hdr {
478 480 position:absolute;
479 481 top:0;
480 482 height:16px;
481 483 border-top: 1px solid #c0c0c0;
482 484 border-bottom: 1px solid #c0c0c0;
483 485 border-right: 1px solid #c0c0c0;
484 486 text-align: center;
485 487 overflow: hidden;
486 488 }
487 489
488 490 .task {
489 491 position: absolute;
490 492 height:8px;
491 493 font-size:0.8em;
492 494 color:#888;
493 495 padding:0;
494 496 margin:0;
495 497 line-height:0.8em;
496 498 }
497 499
498 500 .task_late { background:#f66 url(../images/task_late.png); border: 1px solid #f66; }
499 501 .task_done { background:#66f url(../images/task_done.png); border: 1px solid #66f; }
500 502 .task_todo { background:#aaa url(../images/task_todo.png); border: 1px solid #aaa; }
501 503 .milestone { background-image:url(../images/milestone.png); background-repeat: no-repeat; border: 0; }
502 504
503 505 /***** Icons *****/
504 506 .icon {
505 507 background-position: 0% 40%;
506 508 background-repeat: no-repeat;
507 509 padding-left: 20px;
508 510 padding-top: 2px;
509 511 padding-bottom: 3px;
510 512 }
511 513
512 514 .icon22 {
513 515 background-position: 0% 40%;
514 516 background-repeat: no-repeat;
515 517 padding-left: 26px;
516 518 line-height: 22px;
517 519 vertical-align: middle;
518 520 }
519 521
520 522 .icon-add { background-image: url(../images/add.png); }
521 523 .icon-edit { background-image: url(../images/edit.png); }
522 524 .icon-copy { background-image: url(../images/copy.png); }
523 525 .icon-del { background-image: url(../images/delete.png); }
524 526 .icon-move { background-image: url(../images/move.png); }
525 527 .icon-save { background-image: url(../images/save.png); }
526 528 .icon-cancel { background-image: url(../images/cancel.png); }
527 529 .icon-file { background-image: url(../images/file.png); }
528 530 .icon-folder { background-image: url(../images/folder.png); }
529 531 .open .icon-folder { background-image: url(../images/folder_open.png); }
530 532 .icon-package { background-image: url(../images/package.png); }
531 533 .icon-home { background-image: url(../images/home.png); }
532 534 .icon-user { background-image: url(../images/user.png); }
533 535 .icon-mypage { background-image: url(../images/user_page.png); }
534 536 .icon-admin { background-image: url(../images/admin.png); }
535 537 .icon-projects { background-image: url(../images/projects.png); }
536 538 .icon-logout { background-image: url(../images/logout.png); }
537 539 .icon-help { background-image: url(../images/help.png); }
538 540 .icon-attachment { background-image: url(../images/attachment.png); }
539 541 .icon-index { background-image: url(../images/index.png); }
540 542 .icon-history { background-image: url(../images/history.png); }
541 543 .icon-time { background-image: url(../images/time.png); }
542 544 .icon-stats { background-image: url(../images/stats.png); }
543 545 .icon-warning { background-image: url(../images/warning.png); }
544 546 .icon-fav { background-image: url(../images/fav.png); }
545 547 .icon-fav-off { background-image: url(../images/fav_off.png); }
546 548 .icon-reload { background-image: url(../images/reload.png); }
547 549 .icon-lock { background-image: url(../images/locked.png); }
548 550 .icon-unlock { background-image: url(../images/unlock.png); }
549 551 .icon-checked { background-image: url(../images/true.png); }
550 552 .icon-details { background-image: url(../images/zoom_in.png); }
551 553 .icon-report { background-image: url(../images/report.png); }
552 554
553 555 .icon22-projects { background-image: url(../images/22x22/projects.png); }
554 556 .icon22-users { background-image: url(../images/22x22/users.png); }
555 557 .icon22-tracker { background-image: url(../images/22x22/tracker.png); }
556 558 .icon22-role { background-image: url(../images/22x22/role.png); }
557 559 .icon22-workflow { background-image: url(../images/22x22/workflow.png); }
558 560 .icon22-options { background-image: url(../images/22x22/options.png); }
559 561 .icon22-notifications { background-image: url(../images/22x22/notifications.png); }
560 562 .icon22-authent { background-image: url(../images/22x22/authent.png); }
561 563 .icon22-info { background-image: url(../images/22x22/info.png); }
562 564 .icon22-comment { background-image: url(../images/22x22/comment.png); }
563 565 .icon22-package { background-image: url(../images/22x22/package.png); }
564 566 .icon22-settings { background-image: url(../images/22x22/settings.png); }
565 567 .icon22-plugin { background-image: url(../images/22x22/plugin.png); }
566 568
567 569 /***** Media print specific styles *****/
568 570 @media print {
569 571 #top-menu, #header, #main-menu, #sidebar, #footer, .contextual { display:none; }
570 572 #main { background: #fff; }
571 573 #content { width: 99%; margin: 0; padding: 0; border: 0; background: #fff; }
572 574 }
General Comments 0
You need to be logged in to leave comments. Login now