##// END OF EJS Templates
Added Redmine::Info to store various information about the application....
Jean-Philippe Lang -
r671:840f18b1c7e4
parent child
Show More
@@ -0,0 +1,9
1 module Redmine
2 module Info
3 class << self
4 def app_name; 'Redmine' end
5 def url; 'http://www.redmine.org/' end
6 def versioned_name; "#{app_name} #{Redmine::VERSION}" end
7 end
8 end
9 end
@@ -1,6 +1,6
1 1 <h2><%=l(:label_information_plural)%></h2>
2 2
3 <p><%=l(:field_version)%>: <strong>redMine <%= Redmine::VERSION %></strong> (<%= @db_adapter_name %>)</p>
3 <p><%=l(:field_version)%>: <strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
4 4
5 5 <table class="list">
6 6 <tr class="odd"><td>File repository writable</td><td><%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %></td></tr>
@@ -6,7 +6,7 xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
6 6 xml.id url_for(:controller => 'welcome', :only_path => false)
7 7 xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema)
8 8 xml.author { xml.name "#{Setting.app_title}" }
9 xml.generator(:uri => Redmine::Info.url, :version => Redmine::VERSION) { xml.text! "#{Redmine::Info.name} #{Redmine::VERSION}" }
9 xml.generator(:uri => Redmine::Info.url, :version => Redmine::VERSION) { xml.text! Redmine::Info.versioned_name; }
10 10 @items.each do |item|
11 11 xml.entry do
12 12 xml.title truncate(item.event_title, 100)
@@ -3,7 +3,7
3 3 <head>
4 4 <title><%= Setting.app_title + (@html_title ? ": #{@html_title}" : "") %></title>
5 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6 <meta name="description" content="redMine" />
6 <meta name="description" content="<%= Redmine::Info.app_name %>" />
7 7 <meta name="keywords" content="issue,bug,tracker" />
8 8 <!--[if IE]>
9 9 <style type="text/css">
@@ -103,7 +103,7
103 103 </div>
104 104
105 105 <div id="footer">
106 <p><a href="http://www.redmine.org/">redMine</a> <small><%= Redmine::VERSION %> &copy 2006-2007 Jean-Philippe Lang</small></p>
106 <p><%= link_to Redmine::Info.app_name, Redmine::Info.url %> <small><%= Redmine::VERSION %> &copy 2006-2007 Jean-Philippe Lang</small></p>
107 107 </div>
108 108
109 109 </div>
@@ -1,4 +1,3
1 require 'redmine/version'
2 1 require 'redmine/access_control'
3 2 require 'redmine/menu_manager'
4 3 require 'redmine/mime_type'
@@ -8,11 +8,4 module Redmine
8 8
9 9 def self.to_s; STRING end
10 10 end
11
12 module Info
13 class << self
14 def name; 'Redmine' end
15 def url; 'http://www.redmine.org/' end
16 end
17 end
18 11 end
General Comments 0
You need to be logged in to leave comments. Login now