From 840f18b1c7e462ee56307eb281a91bb7cbbe3ea4 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 29 Aug 2007 22:27:43 +0000 Subject: [PATCH] Added Redmine::Info to store various information about the application. git-svn-id: http://redmine.rubyforge.org/svn/trunk@682 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/admin/info.rhtml | 2 +- app/views/common/feed.atom.rxml | 2 +- app/views/layouts/base.rhtml | 4 ++-- lib/redmine.rb | 1 - lib/redmine/info.rb | 9 +++++++++ lib/redmine/version.rb | 7 ------- 6 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 lib/redmine/info.rb diff --git a/app/views/admin/info.rhtml b/app/views/admin/info.rhtml index dd11aeb1a..a4b44965b 100644 --- a/app/views/admin/info.rhtml +++ b/app/views/admin/info.rhtml @@ -1,6 +1,6 @@

<%=l(:label_information_plural)%>

-

<%=l(:field_version)%>: redMine <%= Redmine::VERSION %> (<%= @db_adapter_name %>)

+

<%=l(:field_version)%>: <%= Redmine::Info.versioned_name %> (<%= @db_adapter_name %>)

diff --git a/app/views/common/feed.atom.rxml b/app/views/common/feed.atom.rxml index fa00d754a..b5f733460 100644 --- a/app/views/common/feed.atom.rxml +++ b/app/views/common/feed.atom.rxml @@ -6,7 +6,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do xml.id url_for(:controller => 'welcome', :only_path => false) xml.updated((@items.first ? @items.first.event_datetime : Time.now).xmlschema) xml.author { xml.name "#{Setting.app_title}" } - xml.generator(:uri => Redmine::Info.url, :version => Redmine::VERSION) { xml.text! "#{Redmine::Info.name} #{Redmine::VERSION}" } + xml.generator(:uri => Redmine::Info.url, :version => Redmine::VERSION) { xml.text! Redmine::Info.versioned_name; } @items.each do |item| xml.entry do xml.title truncate(item.event_title, 100) diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index 9c81a313b..1beb51ca9 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -3,7 +3,7 @@ <%= Setting.app_title + (@html_title ? ": #{@html_title}" : "") %> - +
File repository writable<%= image_tag (@flags[:file_repository_writable] ? 'true.png' : 'false.png'), :style => "vertical-align:bottom;" %>