Permalink
Browse files

Merge branch 'master' of git@github.com:capps/redmine

  • Loading branch information...
2 parents 9f22fbd + b0771e8 commit ed9d53f43c63022a02d70a5ffbcfa115254679fd @capps committed Mar 24, 2011
Showing with 9,278 additions and 17 deletions.
  1. +2 −0 .gitignore
  2. +4 −0 app/helpers/application_helper.rb
  3. +19 −16 app/views/projects/settings/_versions.rhtml
  4. +1 −1 config/environment.rb
  5. +1 −0 config/environments/production.rb
  6. +31 −0 config/environments/redcapps.rb
  7. +14 −0 vendor/plugins/redmine_ultraviolet/LICENSE
  8. +195 −0 vendor/plugins/redmine_ultraviolet/README.rdoc
  9. +18 −0 vendor/plugins/redmine_ultraviolet/app/views/common/_file-old.rhtml
  10. +20 −0 vendor/plugins/redmine_ultraviolet/app/views/common/_file.rhtml
  11. +31 −0 vendor/plugins/redmine_ultraviolet/app/views/repositories/annotate.rhtml-old
  12. +71 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/old/highlight.css
  13. +114 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/active4d.css
  14. +72 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/all_hallows_eve.css
  15. +147 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/amy.css
  16. +88 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/blackboard.css
  17. +605 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/brilliance_black.css
  18. +599 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/brilliance_dull.css
  19. +149 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/cobalt.css
  20. +121 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/dawn.css
  21. +121 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/eiffel.css
  22. +109 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/espresso_libre.css
  23. +62 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/idle.css
  24. +80 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/iplastic.css
  25. +73 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/lazy.css
  26. +123 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/mac_classic.css
  27. +104 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/magicwb_amiga.css
  28. +188 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/pastels_on_dark.css
  29. +85 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/slush_poppies.css
  30. +51 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/spacecadet.css
  31. +180 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/sunburst.css
  32. +137 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/twilight.css
  33. +91 −0 vendor/plugins/redmine_ultraviolet/assets/stylesheets/uv_themes/zenburnesque.css
  34. +24 −0 vendor/plugins/redmine_ultraviolet/init.rb
  35. +107 −0 vendor/plugins/redmine_ultraviolet/lib/ultraviolet_syntax_patch.rb
  36. +5 −0 vendor/plugins/redmine_wiki_extensions/.hg_archival.txt
  37. +15 −0 vendor/plugins/redmine_wiki_extensions/.hgtags
  38. +339 −0 vendor/plugins/redmine_wiki_extensions/GPL.txt
  39. +33 −0 vendor/plugins/redmine_wiki_extensions/README.rdoc
  40. +111 −0 vendor/plugins/redmine_wiki_extensions/app/controllers/wiki_extensions_controller.rb
  41. +57 −0 vendor/plugins/redmine_wiki_extensions/app/controllers/wiki_extensions_settings_controller.rb
  42. +24 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_comment.rb
  43. +54 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_count.rb
  44. +49 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_menu.rb
  45. +20 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_setting.rb
  46. +47 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_tag.rb
  47. +30 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_tag_relation.rb
  48. +54 −0 vendor/plugins/redmine_wiki_extensions/app/models/wiki_extensions_vote.rb
  49. +43 −0 vendor/plugins/redmine_wiki_extensions/app/views/wiki_extensions/_html_header.rhtml
  50. +25 −0 vendor/plugins/redmine_wiki_extensions/app/views/wiki_extensions/tag.html.erb
  51. +18 −0 vendor/plugins/redmine_wiki_extensions/app/views/wiki_extensions_settings/_menu.html.erb
  52. +25 −0 vendor/plugins/redmine_wiki_extensions/app/views/wiki_extensions_settings/_show.html.erb
  53. BIN vendor/plugins/redmine_wiki_extensions/assets/images/add.png
  54. BIN vendor/plugins/redmine_wiki_extensions/assets/images/biggrin.png
  55. BIN vendor/plugins/redmine_wiki_extensions/assets/images/check.png
  56. BIN vendor/plugins/redmine_wiki_extensions/assets/images/empty.gif
  57. BIN vendor/plugins/redmine_wiki_extensions/assets/images/main_smile.png
  58. BIN vendor/plugins/redmine_wiki_extensions/assets/images/minus.gif
  59. BIN vendor/plugins/redmine_wiki_extensions/assets/images/plus.gif
  60. BIN vendor/plugins/redmine_wiki_extensions/assets/images/sad.png
  61. BIN vendor/plugins/redmine_wiki_extensions/assets/images/smile.png
  62. BIN vendor/plugins/redmine_wiki_extensions/assets/images/tongue.png
  63. BIN vendor/plugins/redmine_wiki_extensions/assets/images/warning.png
  64. BIN vendor/plugins/redmine_wiki_extensions/assets/images/wink.png
  65. +255 −0 vendor/plugins/redmine_wiki_extensions/assets/javascripts/tablesort.js
  66. +172 −0 vendor/plugins/redmine_wiki_extensions/assets/javascripts/wiki_extensions.js
  67. +142 −0 vendor/plugins/redmine_wiki_extensions/assets/javascripts/wiki_smiles.js
  68. +135 −0 vendor/plugins/redmine_wiki_extensions/assets/stylesheets/wiki_extensions.css
  69. +103 −0 vendor/plugins/redmine_wiki_extensions/assets/stylesheets/wiki_smiles.css
  70. +23 −0 vendor/plugins/redmine_wiki_extensions/config/emoticons.yml
  71. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/de.yml
  72. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/en.yml
  73. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/es.yml
  74. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/fr.yml
  75. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/it.yml
  76. +14 −0 vendor/plugins/redmine_wiki_extensions/config/locales/ja.yml
  77. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/ko.yml
  78. +14 −0 vendor/plugins/redmine_wiki_extensions/config/locales/no.yml
  79. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/pl.yml
  80. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/pt-BR.yml
  81. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/pt.yml
  82. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/ru.yml
  83. +15 −0 vendor/plugins/redmine_wiki_extensions/config/locales/sv.yml
  84. +32 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0001_create_wiki_extensions_comments.rb
  85. +32 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0002_create_wiki_extensions_tags.rb
  86. +36 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0003_create_wiki_extensions_tag_relations.rb
  87. +35 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0004_create_wiki_extensions_project_settings.rb
  88. +33 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0005_create_wiki_extensions_project_menus.rb
  89. +26 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0006_rename_wiki_extensions_tables.rb
  90. +35 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0007_create_wiki_extensions_counts.rb
  91. +27 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0008_add_auto_preview.rb
  92. +10 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0009_add_parent_id.rb
  93. +27 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0010_add_disable_sidebar.rb
  94. +27 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0011_remove_disable_sidebar.rb
  95. +36 −0 vendor/plugins/redmine_wiki_extensions/db/migrate/0012_create_wiki_extensions_votes.rb
  96. +65 −0 vendor/plugins/redmine_wiki_extensions/init.rb
  97. +12 −0 vendor/plugins/redmine_wiki_extensions/lib/emoticons.rb
  98. +260 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extension_list_issues.rb
  99. +153 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_application_hooks.rb
  100. +78 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_comments.rb
  101. +78 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_count_macro.rb
  102. +40 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_div_macro.rb
  103. +71 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_footnote.rb
  104. +34 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_formatter_patch.rb
  105. +138 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_helper.rb
  106. +53 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_helper_patch.rb
  107. +40 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_iframe_macro.rb
  108. +63 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_issue_hooks.rb
  109. +29 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_lastupdated_at_macro.rb
  110. +30 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_lastupdated_by_macro.rb
  111. +52 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_new_macro.rb
  112. +45 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_project_macro.rb
  113. +44 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_projects_helper_patch.rb
  114. +52 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_recent_macro.rb
  115. +325 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_ref_issue.rb
  116. +53 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_taggedpages_macro.rb
  117. +63 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_tags_macro.rb
  118. +32 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_twitter_macro.rb
  119. +23 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_util.rb
  120. +62 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_vote_macro.rb
  121. +92 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_controller_patch.rb
  122. +49 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_macro.rb
  123. +73 −0 vendor/plugins/redmine_wiki_extensions/lib/wiki_extensions_wiki_page_patch.rb
  124. +27 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_comments.yml
  125. +23 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_counts.yml
  126. +19 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_menus.yml
  127. +23 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_settings.yml
  128. +19 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_tag_relations.yml
  129. +28 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_tags.yml
  130. +23 −0 vendor/plugins/redmine_wiki_extensions/test/fixtures/wiki_extensions_votes.yml
  131. +317 −0 vendor/plugins/redmine_wiki_extensions/test/functional/wiki_controller_test.rb
  132. +106 −0 vendor/plugins/redmine_wiki_extensions/test/functional/wiki_extensions_controller_test.rb
  133. +5 −0 vendor/plugins/redmine_wiki_extensions/test/test_helper.rb
  134. +33 −0 vendor/plugins/redmine_wiki_extensions/test/unit/emoticons_test.rb
  135. +27 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_comment_test.rb
  136. +51 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_count_test.rb
  137. +58 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_menu_test.rb
  138. +36 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_setting_test.rb
  139. +52 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_tag_relation_test.rb
  140. +32 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_tag_test.rb
  141. +125 −0 vendor/plugins/redmine_wiki_extensions/test/unit/wiki_extensions_vote_test.rb
View
@@ -7,6 +7,8 @@
/db/*.sqlite3
/db/schema.rb
/files/*
+/files
+files
/log/*.log*
/log/mongrel_debug
/public/dispatch.*
@@ -415,11 +415,15 @@ def page_header_title
def html_title(*args)
if args.empty?
+
title = []
#title << @project.name if @project
title += @html_title if @html_title
title << Setting.app_title
title.select {|t| !t.blank? }.join(' - ')
+ title.each {|t| t.sub!(/([a-zA-Z]+ )#(\d{1,6}:)(.*)/, '\2 \3') }
+ # this pattern should match Bug | Feature etc followed by a 1 to 6 digit
+ # issue, followed by a description; we capture the number and desc
else
@html_title ||= []
@html_title += args
@@ -1,6 +1,15 @@
+<div class="contextual">
+<% if @project.versions.any? %>
+ <%= link_to l(:label_close_versions), {:controller => 'versions', :action => 'close_completed', :project_id => @project}, :method => :post %>
+<% end %>
+</div>
+
+<p><%= link_to_if_authorized l(:label_version_new), :controller => 'versions', :action => 'new', :project_id => @project %></p>
+
+
<% if @project.shared_versions.any? %>
<table class="list versions">
- <thead><tr>
+ <thead><tr>
<th><%= l(:label_version) %></th>
<th><%= l(:field_effective_date) %></th>
<th><%= l(:field_description) %></th>
@@ -9,21 +18,22 @@
<th><%= l(:label_wiki_page) %></th>
<th style="width:15%"></th>
</tr></thead>
- <tbody>
-<% for version in @project.shared_versions.sort %>
+ <tbody>
+
+<% for version in @project.shared_versions.sort_by{|p| [p[:status], p[:effective_date].nil? ? Date.new(p.created_on.year, p.created_on.month, p.created_on.day) : p[:effective_date]]}.reverse %>
<tr class="version <%= cycle 'odd', 'even' %> <%=h version.status %> <%= 'shared' if version.project != @project %>">
<td class="name"><%= link_to_version version %></td>
<td class="date"><%= format_date(version.effective_date) %></td>
<td class="description"><%=h version.description %></td>
<td class="status"><%= l("version_status_#{version.status}") %></td>
<td class="sharing"><%=h format_version_sharing(version.sharing) %></td>
- <td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'show', :project_id => version.project, :id => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
+ <td><%= link_to_if_authorized(h(version.wiki_page_title), {:controller => 'wiki', :action => 'index', :id => version.project, :page => Wiki.titleize(version.wiki_page_title)}) || h(version.wiki_page_title) unless version.wiki_page_title.blank? || version.project.wiki.nil? %></td>
<td class="buttons">
- <% if version.project == @project %>
- <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
- <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' %>
- <% end %>
- </td>
+ <% if version.project == @project %>
+ <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => version }, :class => 'icon icon-edit' %>
+ <%= link_to_if_authorized l(:button_delete), {:controller => 'versions', :action => 'destroy', :id => version}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
+ <% end %>
+ </td>
</tr>
<% end; reset_cycle %>
</tbody>
@@ -32,10 +42,3 @@
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>
-<div class="contextual">
-<% if @project.versions.any? %>
- <%= link_to l(:label_close_versions), close_completed_project_versions_path(@project), :method => :put %>
-<% end %>
-</div>
-
-<p><%= link_to_if_authorized l(:label_version_new), :controller => 'versions', :action => 'new', :project_id => @project %></p>
View
@@ -48,7 +48,7 @@
# Deliveries are disabled by default. Do NOT modify this section.
# Define your email configuration in email.yml instead.
# It will automatically turn deliveries on
- config.action_mailer.perform_deliveries = false
+ config.action_mailer.perform_deliveries = true
config.gem 'rubytree', :lib => 'tree'
@@ -19,6 +19,7 @@
# Full error reports are disabled and caching is turned on
config.action_controller.consider_all_requests_local = false
config.action_controller.perform_caching = true
+config.action_controller.session = { :key => "_myapp_session", :secret => "nowisthewinterofourdiscontentmade" }
# Enable serving of images, stylesheets, and javascripts from an asset server
# config.action_controller.asset_host = "http://assets.example.com"
@@ -0,0 +1,31 @@
+# Settings specified here will take precedence over those in config/environment.rb
+
+# The production environment is meant for finished, "live" apps.
+# Code is not reloaded between requests
+config.cache_classes = true
+
+#####
+# Customize the default logger (http://ruby-doc.org/core/classes/Logger.html)
+#
+# Use a different logger for distributed setups
+# config.logger = SyslogLogger.new
+#
+# Rotate logs bigger than 1MB, keeps no more than 7 rotated logs around.
+# When setting a new Logger, make sure to set it's log level too.
+#
+# config.logger = Logger.new(config.log_path, 7, 1048576)
+# config.logger.level = Logger::INFO
+
+# Full error reports are disabled and caching is turned on
+config.action_controller.consider_all_requests_local = false
+config.action_controller.perform_caching = true
+config.action_controller.session = { :key => "_myapp_session", :secret => "nowisthewinterofourdiscontentmade" }
+
+# Enable serving of images, stylesheets, and javascripts from an asset server
+# config.action_controller.asset_host = "http://assets.example.com"
+
+# Disable delivery errors if you bad email addresses should just be ignored
+config.action_mailer.raise_delivery_errors = false
+
+# No email in production log
+config.action_mailer.logger = nil
@@ -0,0 +1,14 @@
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ Version 2, December 2004
+
+ Copyright (C) 2004 Sam Hocevar
+ 14 rue de Plaisance, 75014 Paris, France
+ Everyone is permitted to copy and distribute verbatim or modified
+ copies of this license document, and changing it is allowed as long
+ as the name is changed.
+
+ DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. You just DO WHAT THE FUCK YOU WANT TO.
+
@@ -0,0 +1,195 @@
+= redmine_ultraviolet
+
+A Redmine plugin that replaces the repository's default syntax highlighting
+engine (CodeRay) with a nicer one (Ultraviolet).
+
+Ultraviolet uses Textmate's syntax highlighting files, so it supports every
+language under the sun. And it has lots of themes!
+
+= Installation:
+
+First, install Ultraviolet:
+
+ apt-get install libonig-dev
+ gem install ultraviolet
+
+Next, use Rails' handy-dandy plugin installer to grab this plugin:
+
+ script/plugin install git://github.com/epitron/redmine_ultraviolet.git
+
+Alternatively, you can just copy the <tt>redmine_ultraviolet</tt> directory into <tt>vendor/plugins/</tt>
+
+
+= Themes:
+
+The highlighter's default colour scheme ("theme") is currently {pastels_on_dark}[http://ultraviolet.rubyforge.org/themes.xhtml#pastels_on_dark].
+
+Each user can change the colour scheme by going to "My account" and picking the theme from the dropdown list. (See {this handy page of what the themes actually look like}[http://ultraviolet.rubyforge.org/themes.xhtml] to pick a good one.)
+
+
+= Supported Languages:
+
+* ANTLR
+* ASP
+* ASP vb.NET
+* ActionScript
+* Active4D
+* Active4D Config
+* Active4D Library
+* Ada
+* Apache
+* AppleScript
+* BibTeX
+* Blog — HTML
+* Blog — Markdown
+* Blog — Text
+* Blog — Textile
+* Bulletin Board
+* C
+* C#
+* C++
+* CM
+* CSS
+* CSS v3 beta
+* CSV
+* Cake
+* ColdFusion
+* Context Free
+* D
+* Diff
+* DokuWiki
+* Doxygen
+* Dylan
+* Eiffel
+* Erlang
+* F-Script
+* FXScript
+* Fortran
+* GTD
+* GTDalt
+* Graphviz (DOT)
+* Greasemonkey
+* Gri
+* Groovy
+* HTML
+* HTML (ASP)
+* HTML (ASP.net)
+* HTML (Active4D)
+* HTML (Django)
+* HTML (Mason)
+* HTML (Rails)
+* HTML (Tcl)
+* Haml
+* Haskell
+* Inform
+* Ini
+* Installer Distribution Script
+* Io
+* JSON
+* Java
+* Java Properties
+* JavaScript
+* Javascript YUI
+* LaTeX
+* LaTeX Beamer
+* LaTeX Log
+* LaTeX Memoir
+* Language Grammar
+* Lex/Flex
+* Lighttpd
+* Lilypond
+* Lisp
+* Literate Haskell
+* Logo
+* Logtalk
+* Lua
+* MATLAB
+* MEL
+* MIPS Assembler
+* MacPorts Portfile
+* Mail
+* Makefile
+* Man
+* Markdown
+* Mediawiki
+* Modula-3
+* MoinMoin
+* MooTools
+* Movable Type
+* MultiMarkdown
+* NAnt Build File
+* OCaml
+* OCamllex
+* OCamlyacc
+* Objective-C
+* Objective-C++
+* OpenGL
+* PHP
+* Pascal
+* Perl
+* Plain Text
+* PmWiki
+* Postscript
+* Processing
+* Prolog
+* Property List
+* Prototype & Script.aculo.us (JavaScript)
+* Prototype & Script.aculo.us (JavaScript) Bracketed
+* Python
+* Python (Django)
+* Qt C++
+* Quake Style .cfg
+* R
+* R Console
+* Ragel
+* Rd (R Documentation)
+* Regular Expression
+* Regular Expressions (Oniguruma)
+* Regular Expressions (Python)
+* Release Notes
+* Remind
+* Rez
+* Ruby
+* Ruby Experimental
+* Ruby on Rails
+* S5 Slide Show
+* SQL
+* SQL (Rails)
+* SSH Config
+* SWIG
+* SWeave
+* Scheme
+* Scilab
+* Setext
+* Shell Script (Bash)
+* Slate
+* Smarty
+* Standard ML
+* Strings File
+* TSV
+* Tcl
+* TeX
+* TeX Math
+* Template Toolkit
+* Textile
+* Twiki
+* Txt2tags
+* Vectorscript
+* XHTML 1.0 Strict
+* XML
+* XML strict
+* XSL
+* YAML
+* camlp4
+* iCalendar
+* jQuery (JavaScript)
+* mod_perl
+* qmake Project file
+* reStructuredText
+
+= License:
+
+Copyright (c) 2009-2010 Chris Gahan
+Copyright (c) 2010 Andy Bailey
+
+Licensed under the WTFPL. See LICENSE for details.
@@ -0,0 +1,18 @@
+<div class="autoscroll">
+ <table class="filecontent CodeRay">
+ <tbody>
+ <% line_num = 1 %>
+ <% syntax_highlight(filename, to_utf8(content)).each_line do |line| %>
+ <tr>
+ <th class="line-num" id="L<%= line_num %>"><a href="#L<%= line_num %>"><%= line_num %></a></th>
+ <td><pre class="<%= @uv_theme_name %>"><%= line %></pre></td>
+ </tr>
+ <% line_num += 1 %>
+ <% end %>
+ </tbody>
+ </table>
+</div>
+
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag "uv_themes/#{@uv_theme_name}", :plugin => 'redmine_ultraviolet' %>
+<% end %>
@@ -0,0 +1,20 @@
+<style>
+.uv-file pre {
+ font-size: 12px;
+ margin: 0 0 0 0;
+ padding: none;
+}
+
+.uv-file {
+ overflow-x: auto;
+ border: 4px solid black;
+}
+</style>
+
+<div class="uv-file">
+ <%= syntax_highlight(filename, to_utf8(content)) %>
+</div>
+
+<% content_for :header_tags do %>
+ <%= stylesheet_link_tag "uv_themes/#{@uv_theme_name}", :plugin => 'redmine_ultraviolet' %>
+<% end %>
Oops, something went wrong.

0 comments on commit ed9d53f

Please sign in to comment.