Revision 1297:0a574315af3e .svn/pristine/ce
| .svn/pristine/ce/ce1d1b7dae18c3f2642bcd49171987cc00fe9c59.svn-base | ||
|---|---|---|
| 1 |
source 'http://rubygems.org' |
|
| 2 |
|
|
| 3 |
gem "rails", "3.2.13" |
|
| 4 |
gem "jquery-rails", "~> 2.0.2" |
|
| 5 |
gem "i18n", "~> 0.6.0" |
|
| 6 |
gem "coderay", "~> 1.0.6" |
|
| 7 |
gem "fastercsv", "~> 1.5.0", :platforms => [:mri_18, :mingw_18, :jruby] |
|
| 8 |
gem "builder", "3.0.0" |
|
| 9 |
|
|
| 10 |
# Optional gem for LDAP authentication |
|
| 11 |
group :ldap do |
|
| 12 |
gem "net-ldap", "~> 0.3.1" |
|
| 13 |
end |
|
| 14 |
|
|
| 15 |
# Optional gem for OpenID authentication |
|
| 16 |
group :openid do |
|
| 17 |
gem "ruby-openid", "~> 2.1.4", :require => "openid" |
|
| 18 |
gem "rack-openid" |
|
| 19 |
end |
|
| 20 |
|
|
| 21 |
# Optional gem for exporting the gantt to a PNG file, not supported with jruby |
|
| 22 |
platforms :mri, :mingw do |
|
| 23 |
group :rmagick do |
|
| 24 |
# RMagick 2 supports ruby 1.9 |
|
| 25 |
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support |
|
| 26 |
# different requirements for the same gem on different platforms |
|
| 27 |
gem "rmagick", ">= 2.0.0" |
|
| 28 |
end |
|
| 29 |
end |
|
| 30 |
|
|
| 31 |
# Database gems |
|
| 32 |
platforms :mri, :mingw do |
|
| 33 |
group :postgresql do |
|
| 34 |
gem "pg", ">= 0.11.0" |
|
| 35 |
end |
|
| 36 |
|
|
| 37 |
group :sqlite do |
|
| 38 |
gem "sqlite3" |
|
| 39 |
end |
|
| 40 |
end |
|
| 41 |
|
|
| 42 |
platforms :mri_18, :mingw_18 do |
|
| 43 |
group :mysql do |
|
| 44 |
gem "mysql", "~> 2.8.1" |
|
| 45 |
end |
|
| 46 |
end |
|
| 47 |
|
|
| 48 |
platforms :mri_19, :mingw_19 do |
|
| 49 |
group :mysql do |
|
| 50 |
gem "mysql2", "~> 0.3.11" |
|
| 51 |
end |
|
| 52 |
end |
|
| 53 |
|
|
| 54 |
platforms :jruby do |
|
| 55 |
gem "jruby-openssl" |
|
| 56 |
|
|
| 57 |
group :mysql do |
|
| 58 |
gem "activerecord-jdbcmysql-adapter" |
|
| 59 |
end |
|
| 60 |
|
|
| 61 |
group :postgresql do |
|
| 62 |
gem "activerecord-jdbcpostgresql-adapter" |
|
| 63 |
end |
|
| 64 |
|
|
| 65 |
group :sqlite do |
|
| 66 |
gem "activerecord-jdbcsqlite3-adapter" |
|
| 67 |
end |
|
| 68 |
end |
|
| 69 |
|
|
| 70 |
group :development do |
|
| 71 |
gem "rdoc", ">= 2.4.2" |
|
| 72 |
gem "yard" |
|
| 73 |
end |
|
| 74 |
|
|
| 75 |
group :test do |
|
| 76 |
gem "shoulda", "~> 2.11" |
|
| 77 |
# Shoulda does not work nice on Ruby 1.9.3 and JRuby 1.7. |
|
| 78 |
# It seems to need test-unit explicitely. |
|
| 79 |
platforms = [:mri_19] |
|
| 80 |
platforms << :jruby if defined?(JRUBY_VERSION) && JRUBY_VERSION >= "1.7" |
|
| 81 |
gem "test-unit", :platforms => platforms |
|
| 82 |
gem "mocha", "~> 0.13.3" |
|
| 83 |
end |
|
| 84 |
|
|
| 85 |
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local") |
|
| 86 |
if File.exists?(local_gemfile) |
|
| 87 |
puts "Loading Gemfile.local ..." if $DEBUG # `ruby -d` or `bundle -v` |
|
| 88 |
instance_eval File.read(local_gemfile) |
|
| 89 |
end |
|
| 90 |
|
|
| 91 |
# Load plugins' Gemfiles |
|
| 92 |
Dir.glob File.expand_path("../plugins/*/Gemfile", __FILE__) do |file|
|
|
| 93 |
puts "Loading #{file} ..." if $DEBUG # `ruby -d` or `bundle -v`
|
|
| 94 |
instance_eval File.read(file) |
|
| 95 |
end |
|
| .svn/pristine/ce/ceab695f77fe3ebbfee36cd481f3a4c77d758f4f.svn-base | ||
|---|---|---|
| 1 |
<%= form_tag({:action => 'edit', :tab => 'projects'}) do %>
|
|
| 2 |
|
|
| 3 |
<div class="box tabular settings"> |
|
| 4 |
<p><%= setting_check_box :default_projects_public %></p> |
|
| 5 |
|
|
| 6 |
<p><%= setting_multiselect(:default_projects_modules, |
|
| 7 |
Redmine::AccessControl.available_project_modules.collect {|m| [l_or_humanize(m, :prefix => "project_module_"), m.to_s]}) %></p>
|
|
| 8 |
|
|
| 9 |
<p><%= setting_check_box :sequential_project_identifiers %></p> |
|
| 10 |
|
|
| 11 |
<p><%= setting_select :new_project_user_role_id, |
|
| 12 |
Role.find_all_givable.collect {|r| [r.name, r.id.to_s]},
|
|
| 13 |
:blank => "--- #{l(:actionview_instancetag_blank_option)} ---" %></p>
|
|
| 14 |
</div> |
|
| 15 |
|
|
| 16 |
<%= submit_tag l(:button_save) %> |
|
| 17 |
<% end %> |
|
| .svn/pristine/ce/cebffaae753a7cc849c7601935577fcde31c4695.svn-base | ||
|---|---|---|
| 1 |
<div class="contextual"> |
|
| 2 |
<%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %> |
|
| 3 |
</div> |
|
| 4 |
|
|
| 5 |
<h2><%=l(:label_roadmap)%></h2> |
|
| 6 |
|
|
| 7 |
<% if @versions.empty? %> |
|
| 8 |
<p class="nodata"><%= l(:label_no_data) %></p> |
|
| 9 |
<% else %> |
|
| 10 |
<div id="roadmap"> |
|
| 11 |
<% @versions.each do |version| %> |
|
| 12 |
<h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> |
|
| 13 |
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
|
| 14 |
<%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
|
| 15 |
|
|
| 16 |
<% if (issues = @issues_by_version[version]) && issues.size > 0 %> |
|
| 17 |
<%= form_tag({}) do -%>
|
|
| 18 |
<table class="list related-issues"> |
|
| 19 |
<caption><%= l(:label_related_issues) %></caption> |
|
| 20 |
<% issues.each do |issue| -%> |
|
| 21 |
<tr class="hascontextmenu"> |
|
| 22 |
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> |
|
| 23 |
<td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> |
|
| 24 |
</tr> |
|
| 25 |
<% end -%> |
|
| 26 |
</table> |
|
| 27 |
<% end %> |
|
| 28 |
<% end %> |
|
| 29 |
<%= call_hook :view_projects_roadmap_version_bottom, :version => version %> |
|
| 30 |
<% end %> |
|
| 31 |
</div> |
|
| 32 |
<% end %> |
|
| 33 |
|
|
| 34 |
<% content_for :sidebar do %> |
|
| 35 |
<%= form_tag({}, :method => :get) do %>
|
|
| 36 |
<h3><%= l(:label_roadmap) %></h3> |
|
| 37 |
<% @trackers.each do |tracker| %> |
|
| 38 |
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %> |
|
| 39 |
<%=h tracker.name %></label><br /> |
|
| 40 |
<% end %> |
|
| 41 |
<br /> |
|
| 42 |
<label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label> |
|
| 43 |
<% if @project.descendants.active.any? %> |
|
| 44 |
<%= hidden_field_tag 'with_subprojects', 0 %> |
|
| 45 |
<br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label> |
|
| 46 |
<% end %> |
|
| 47 |
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p> |
|
| 48 |
<% end %> |
|
| 49 |
|
|
| 50 |
<h3><%= l(:label_version_plural) %></h3> |
|
| 51 |
<% @versions.each do |version| %> |
|
| 52 |
<%= link_to format_version_name(version), "##{version_anchor(version)}" %><br />
|
|
| 53 |
<% end %> |
|
| 54 |
<% if @completed_versions.present? %> |
|
| 55 |
<p> |
|
| 56 |
<%= link_to_function l(:label_completed_versions), |
|
| 57 |
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
|
|
| 58 |
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br /> |
|
| 59 |
<span id="completed-versions" style="display:none;"> |
|
| 60 |
<%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %>
|
|
| 61 |
</span> |
|
| 62 |
</p> |
|
| 63 |
<% end %> |
|
| 64 |
<% end %> |
|
| 65 |
|
|
| 66 |
<% html_title(l(:label_roadmap)) %> |
|
| 67 |
|
|
| 68 |
<%= context_menu issues_context_menu_path %> |
|
Also available in: Unified diff