mirror of
https://github.com/opf/openproject.git
synced 2026-06-13 19:20:00 +00:00
Rename Redmine::Info to OpenProject::Info
This commit is contained in:
@@ -1076,8 +1076,8 @@ module ApplicationHelper
|
||||
#
|
||||
def footer_content
|
||||
elements = []
|
||||
elements << I18n.t(:text_powered_by, :link => link_to(Redmine::Info.app_name,
|
||||
Redmine::Info.url))
|
||||
elements << I18n.t(:text_powered_by, :link => link_to(OpenProject::Info.app_name,
|
||||
OpenProject::Info.url))
|
||||
unless OpenProject::Footer.content.nil?
|
||||
OpenProject::Footer.content.each do |name, value|
|
||||
content = value.respond_to?(:call) ? value.call : value
|
||||
|
||||
@@ -340,7 +340,7 @@ module WorkPackage::PdfExporter
|
||||
set_language_if_valid lang
|
||||
@font_for_content = 'FreeSans'
|
||||
@font_for_footer = 'FreeSans'
|
||||
SetCreator(Redmine::Info.app_name)
|
||||
SetCreator(OpenProject::Info.app_name)
|
||||
SetFont(@font_for_content)
|
||||
end
|
||||
|
||||
@@ -394,7 +394,7 @@ module WorkPackage::PdfExporter
|
||||
@font_for_content = 'Arial'
|
||||
@font_for_footer = 'Helvetica'
|
||||
|
||||
SetCreator(Redmine::Info.app_name)
|
||||
SetCreator(OpenProject::Info.app_name)
|
||||
SetFont(@font_for_content)
|
||||
end
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ See doc/COPYRIGHT.rdoc for more details.
|
||||
<%= call_hook(:view_admin_info_top) %>
|
||||
|
||||
<%= content_tag :h3, I18n.t('label_core_version') %>
|
||||
<p><strong><%= Redmine::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
|
||||
<p><strong><%= OpenProject::Info.versioned_name %></strong> (<%= @db_adapter_name %>)</p>
|
||||
|
||||
<%= content_tag :h3, I18n.t('label_system') %>
|
||||
<table class="list">
|
||||
|
||||
@@ -38,7 +38,7 @@ xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
|
||||
xml.id url_for(:controller => '/welcome', :only_path => false)
|
||||
xml.updated(updated_time.xmlschema)
|
||||
xml.author { xml.name "#{Setting.app_title}" }
|
||||
xml.generator(:uri => Redmine::Info.url) { xml.text! Redmine::Info.app_name; }
|
||||
xml.generator(:uri => OpenProject::Info.url) { xml.text! OpenProject::Info.app_name; }
|
||||
@items.each do |item|
|
||||
item_event = (not first_item.nil? and first_item.respond_to?(:data)) ? item.data : item
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ See doc/COPYRIGHT.rdoc for more details.
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
||||
<title><%= html_title %></title>
|
||||
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
||||
<meta name="description" content="<%= OpenProject::Info.app_name %>" />
|
||||
<meta name="keywords" content="issue,bug,type" />
|
||||
<meta name="current_menu_item" content="<%= current_menu_item %>" />
|
||||
<%= csrf_meta_tags %>
|
||||
|
||||
+1
-1
@@ -227,7 +227,7 @@ Redmine::MenuManager.map :top_menu do |menu|
|
||||
menu.push :my_page, { :controller => '/my', :action => 'page' }, :if => Proc.new { User.current.logged? }
|
||||
# projects menu will be added by Redmine::MenuManager::TopMenuHelper#render_projects_top_menu_node
|
||||
menu.push :administration, { :controller => '/admin', :action => 'projects' }, :if => Proc.new { User.current.admin? }, :last => true
|
||||
menu.push :help, Redmine::Info.help_url, :last => true, :caption => "?", :html => { :accesskey => Redmine::AccessKeys.key_for(:help) }
|
||||
menu.push :help, OpenProject::Info.help_url, :last => true, :caption => "?", :html => { :accesskey => Redmine::AccessKeys.key_for(:help) }
|
||||
end
|
||||
|
||||
Redmine::MenuManager.map :account_menu do |menu|
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@
|
||||
# See doc/COPYRIGHT.rdoc for more details.
|
||||
#++
|
||||
|
||||
module Redmine
|
||||
module OpenProject
|
||||
module Info
|
||||
class << self
|
||||
def app_name; Setting.software_name end
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@
|
||||
ENV["RAILS_ENV"] ||= "production"
|
||||
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
||||
puts
|
||||
puts Redmine::Info.environment
|
||||
puts OpenProject::Info.environment
|
||||
|
||||
@@ -57,7 +57,7 @@ describe ApplicationHelper do
|
||||
OpenProject::Footer.content = nil
|
||||
end
|
||||
|
||||
it { footer_content.should == I18n.t(:text_powered_by, :link => link_to(Redmine::Info.app_name, Redmine::Info.url)) }
|
||||
it { footer_content.should == I18n.t(:text_powered_by, :link => link_to(OpenProject::Info.app_name, OpenProject::Info.url)) }
|
||||
end
|
||||
|
||||
context "string as additional footer content" do
|
||||
@@ -66,7 +66,7 @@ describe ApplicationHelper do
|
||||
OpenProject::Footer.add_content("openproject","footer")
|
||||
end
|
||||
|
||||
it { footer_content.include?(I18n.t(:text_powered_by, :link => link_to(Redmine::Info.app_name, Redmine::Info.url))).should be_true }
|
||||
it { footer_content.include?(I18n.t(:text_powered_by, :link => link_to(OpenProject::Info.app_name, OpenProject::Info.url))).should be_true }
|
||||
it { footer_content.include?("<span class=\"footer_openproject\">footer</span>").should be_true }
|
||||
end
|
||||
|
||||
|
||||
@@ -178,9 +178,9 @@ class Redmine::MenuManager::MapperTest < ActiveSupport::TestCase
|
||||
test 'deleting all items' do
|
||||
# Exposed by deleting :last items
|
||||
Redmine::MenuManager.map :test_menu do |menu|
|
||||
menu.push :not_last, Redmine::Info.help_url
|
||||
menu.push :not_last, OpenProject::Info.help_url
|
||||
menu.push :administration, { :controller => 'projects', :action => 'show'}, {:last => true}
|
||||
menu.push :help, Redmine::Info.help_url, :last => true
|
||||
menu.push :help, OpenProject::Info.help_url, :last => true
|
||||
end
|
||||
|
||||
assert_nothing_raised do
|
||||
|
||||
Reference in New Issue
Block a user