Compare commits
11 Commits
1.1.3
...
1.1-stable
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bc79904e4e | ||
|
|
ffc111bd23 | ||
|
|
2a2e705e9e | ||
|
|
31cd20f2b6 | ||
|
|
4fc2e757f6 | ||
|
|
240254b1a3 | ||
|
|
95f3c336d5 | ||
|
|
d63e3a781f | ||
|
|
0aab60943c | ||
|
|
935306af80 | ||
|
|
6fce2170c4 |
@@ -271,6 +271,7 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
end
|
||||
redirect_to default
|
||||
false
|
||||
end
|
||||
|
||||
def render_403(options={})
|
||||
|
||||
@@ -38,8 +38,9 @@ class CustomFieldsController < ApplicationController
|
||||
flash[:notice] = l(:notice_successful_create)
|
||||
call_hook(:controller_custom_fields_new_after_save, :params => params, :custom_field => @custom_field)
|
||||
redirect_to :action => 'index', :tab => @custom_field.class.name
|
||||
else
|
||||
@trackers = Tracker.find(:all, :order => 'position')
|
||||
end
|
||||
@trackers = Tracker.find(:all, :order => 'position')
|
||||
end
|
||||
|
||||
def edit
|
||||
@@ -48,8 +49,9 @@ class CustomFieldsController < ApplicationController
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
call_hook(:controller_custom_fields_edit_after_save, :params => params, :custom_field => @custom_field)
|
||||
redirect_to :action => 'index', :tab => @custom_field.class.name
|
||||
else
|
||||
@trackers = Tracker.find(:all, :order => 'position')
|
||||
end
|
||||
@trackers = Tracker.find(:all, :order => 'position')
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
@@ -75,10 +75,12 @@ class EnumerationsController < ApplicationController
|
||||
# No associated objects
|
||||
@enumeration.destroy
|
||||
redirect_to :action => 'index'
|
||||
return
|
||||
elsif params[:reassign_to_id]
|
||||
if reassign_to = @enumeration.class.find_by_id(params[:reassign_to_id])
|
||||
@enumeration.destroy(reassign_to)
|
||||
redirect_to :action => 'index'
|
||||
return
|
||||
end
|
||||
end
|
||||
@enumerations = @enumeration.class.find(:all) - [@enumeration]
|
||||
|
||||
@@ -65,10 +65,12 @@ class IssueCategoriesController < ApplicationController
|
||||
# No issue assigned to this category
|
||||
@category.destroy
|
||||
redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories'
|
||||
return
|
||||
elsif params[:todo]
|
||||
reassign_to = @project.issue_categories.find_by_id(params[:reassign_to_id]) if params[:todo] == 'reassign'
|
||||
@category.destroy(reassign_to)
|
||||
redirect_to :controller => 'projects', :action => 'settings', :id => @project, :tab => 'categories'
|
||||
return
|
||||
end
|
||||
@categories = @project.issue_categories - [@category]
|
||||
end
|
||||
|
||||
@@ -38,9 +38,10 @@ class RolesController < ApplicationController
|
||||
end
|
||||
flash[:notice] = l(:notice_successful_create)
|
||||
redirect_to :action => 'index'
|
||||
else
|
||||
@permissions = @role.setable_permissions
|
||||
@roles = Role.find :all, :order => 'builtin, position'
|
||||
end
|
||||
@permissions = @role.setable_permissions
|
||||
@roles = Role.find :all, :order => 'builtin, position'
|
||||
end
|
||||
|
||||
def edit
|
||||
@@ -48,8 +49,9 @@ class RolesController < ApplicationController
|
||||
if request.post? and @role.update_attributes(params[:role])
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'index'
|
||||
else
|
||||
@permissions = @role.setable_permissions
|
||||
end
|
||||
@permissions = @role.setable_permissions
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
@@ -36,16 +36,16 @@ class SettingsController < ApplicationController
|
||||
end
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'edit', :tab => params[:tab]
|
||||
return
|
||||
end
|
||||
@options = {}
|
||||
@options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] }
|
||||
@deliveries = ActionMailer::Base.perform_deliveries
|
||||
else
|
||||
@options = {}
|
||||
@options[:user_format] = User::USER_FORMATS.keys.collect {|f| [User.current.name(f), f.to_s] }
|
||||
@deliveries = ActionMailer::Base.perform_deliveries
|
||||
|
||||
@guessed_host_and_path = request.host_with_port.dup
|
||||
@guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank?
|
||||
@guessed_host_and_path = request.host_with_port.dup
|
||||
@guessed_host_and_path << ('/'+ Redmine::Utils.relative_url_root.gsub(%r{^\/}, '')) unless Redmine::Utils.relative_url_root.blank?
|
||||
|
||||
Redmine::Themes.rescan
|
||||
Redmine::Themes.rescan
|
||||
end
|
||||
end
|
||||
|
||||
def plugin
|
||||
@@ -54,9 +54,10 @@ class SettingsController < ApplicationController
|
||||
Setting["plugin_#{@plugin.id}"] = params[:settings]
|
||||
flash[:notice] = l(:notice_successful_update)
|
||||
redirect_to :action => 'plugin', :id => @plugin.id
|
||||
else
|
||||
@partial = @plugin.settings[:partial]
|
||||
@settings = Setting["plugin_#{@plugin.id}"]
|
||||
end
|
||||
@partial = @plugin.settings[:partial]
|
||||
@settings = Setting["plugin_#{@plugin.id}"]
|
||||
rescue Redmine::PluginNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
@@ -47,12 +47,31 @@ class Repository::Git < Repository
|
||||
scm.tags
|
||||
end
|
||||
|
||||
# In Git and Mercurial, revisions are not in date order.
|
||||
# Mercurial fixed issues.
|
||||
# * Redmine Takes Too Long On Large Mercurial Repository
|
||||
# http://www.redmine.org/issues/3449
|
||||
# * Sorting for changesets might go wrong on Mercurial repos
|
||||
# http://www.redmine.org/issues/3567
|
||||
# Database revision column is text, so Redmine can not sort by revision.
|
||||
# Mercurial has revision number, and revision number guarantees revision order.
|
||||
# Mercurial adapter uses "hg log -r 0:tip --limit 10"
|
||||
# to get limited revisions from old to new.
|
||||
# And Mercurial model stored revisions ordered by database id in database.
|
||||
# So, Mercurial can use correct order revisions.
|
||||
#
|
||||
# But, Git 1.7.3.4 does not support --reverse with -n or --skip.
|
||||
#
|
||||
# With SCM's that have a sequential commit numbering, redmine is able to be
|
||||
# clever and only fetch changesets going forward from the most recent one
|
||||
# it knows about. However, with git, you never know if people have merged
|
||||
# it knows about.
|
||||
# However, with git, you never know if people have merged
|
||||
# commits into the middle of the repository history, so we should parse
|
||||
# the entire log. Since it's way too slow for large repositories, we only
|
||||
# parse 1 week before the last known commit.
|
||||
# the entire log.
|
||||
#
|
||||
# Since it's way too slow for large repositories,
|
||||
# we only parse 1 week before the last known commit.
|
||||
#
|
||||
# The repository can still be fully reloaded by calling #clear_changesets
|
||||
# before fetching changesets (eg. for offline resync)
|
||||
def fetch_changesets
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
<tbody>
|
||||
<% for source in @auth_sources %>
|
||||
<tr class="<%= cycle("odd", "even") %>">
|
||||
<td><%= link_to source.name, :action => 'edit', :id => source%></td>
|
||||
<td align="center"><%= source.auth_method_name %></td>
|
||||
<td align="center"><%= source.host %></td>
|
||||
<td align="center"><%= source.users.count %></td>
|
||||
<td><%= link_to(h(source.name), :action => 'edit', :id => source)%></td>
|
||||
<td align="center"><%= h source.auth_method_name %></td>
|
||||
<td align="center"><%= h source.host %></td>
|
||||
<td align="center"><%= h source.users.count %></td>
|
||||
<td class="buttons">
|
||||
<%= link_to l(:button_test), :action => 'test_connection', :id => source %>
|
||||
<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
|
||||
|
||||
@@ -349,7 +349,7 @@ cs:
|
||||
setting_sequential_project_identifiers: Generovat sekvenční identifikátory projektů
|
||||
setting_gravatar_enabled: Použít uživatelské ikony Gravatar
|
||||
setting_gravatar_default: Výchozí Gravatar
|
||||
setting_diff_max_lines_displayed: Maximální počet zobrazenách řádků rozdílů
|
||||
setting_diff_max_lines_displayed: Maximální počet zobrazených řádků rozdílů
|
||||
setting_file_max_size_displayed: Maximální velikost textových souborů zobrazených přímo na stránce
|
||||
setting_repository_log_display_limit: Maximální počet revizí zobrazených v logu souboru
|
||||
setting_openid: Umožnit přihlašování a registrace s OpenID
|
||||
|
||||
@@ -931,27 +931,27 @@
|
||||
text_zoom_out: Kicsinyít
|
||||
text_zoom_in: Nagyít
|
||||
notice_unable_delete_time_entry: Az időrögzítés nem törölhető
|
||||
label_overall_spent_time: Összes rászánt idő
|
||||
field_time_entries: Log time
|
||||
label_overall_spent_time: Összes ráfordított idő
|
||||
field_time_entries: Idő rögzítés
|
||||
project_module_gantt: Gantt
|
||||
project_module_calendar: Calendar
|
||||
button_edit_associated_wikipage: "Edit associated Wiki page: %{page_title}"
|
||||
text_are_you_sure_with_children: Delete issue and all child issues?
|
||||
field_text: Text field
|
||||
label_user_mail_option_only_owner: Only for things I am the owner of
|
||||
setting_default_notification_option: Default notification option
|
||||
label_user_mail_option_only_my_events: Only for things I watch or I'm involved in
|
||||
label_user_mail_option_only_assigned: Only for things I am assigned to
|
||||
label_user_mail_option_none: No events
|
||||
field_member_of_group: Assignee's group
|
||||
field_assigned_to_role: Assignee's role
|
||||
notice_not_authorized_archived_project: The project you're trying to access has been archived.
|
||||
label_principal_search: "Search for user or group:"
|
||||
label_user_search: "Search for user:"
|
||||
field_visible: Visible
|
||||
setting_emails_header: Emails header
|
||||
setting_commit_logtime_activity_id: Activity for logged time
|
||||
text_time_logged_by_changeset: Applied in changeset %{value}.
|
||||
setting_commit_logtime_enabled: Enable time logging
|
||||
notice_gantt_chart_truncated: The chart was truncated because it exceeds the maximum number of items that can be displayed (%{max})
|
||||
setting_gantt_items_limit: Maximum number of items displayed on the gantt chart
|
||||
project_module_calendar: Naptár
|
||||
button_edit_associated_wikipage: "Hozzárendelt Wiki oldal szerkesztése: %{page_title}"
|
||||
text_are_you_sure_with_children: A feladat törlése az összes alfeladattal együtt?
|
||||
field_text: Szöveg mező
|
||||
label_user_mail_option_only_owner: Csak arról, aminek én vagyok a tulajdonosa
|
||||
setting_default_notification_option: Alapértelmezett értesítési beállítások
|
||||
label_user_mail_option_only_my_events: Csak az általam megfigyelt dolgokról vagy amiben részt veszek
|
||||
label_user_mail_option_only_assigned: Csak a hozzámrendelt dolgokról
|
||||
label_user_mail_option_none: Semilyen eseményről
|
||||
field_member_of_group: Hozzárendelt csoport
|
||||
field_assigned_to_role: Hozzárendelt szerepkör
|
||||
notice_not_authorized_archived_project: A projekt, amihez hozzá szeretnél férni archiválva lett.
|
||||
label_principal_search: "Felhasználó vagy csoport keresése:"
|
||||
label_user_search: "Felhasználó keresése:"
|
||||
field_visible: Látható
|
||||
setting_emails_header: Emailek fejléce
|
||||
setting_commit_logtime_activity_id: A rögzített időhöz tartozó tevékenység
|
||||
text_time_logged_by_changeset: Alkalmazva a %{value} changeset-ben.
|
||||
setting_commit_logtime_enabled: Időrögzítés engedélyezése
|
||||
notice_gantt_chart_truncated: A diagram le lett vágva, mert elérte a maximálisan megjeleníthető elemek számát (%{max})
|
||||
setting_gantt_items_limit: A gantt diagrammon megjeleníthető maximális elemek száma
|
||||
|
||||
@@ -261,7 +261,7 @@ ru:
|
||||
default_issue_status_closed: Закрыта
|
||||
default_issue_status_feedback: Обратная связь
|
||||
default_issue_status_new: Новая
|
||||
default_issue_status_rejected: Отказ
|
||||
default_issue_status_rejected: Отклонена
|
||||
default_issue_status_resolved: Решена
|
||||
default_priority_high: Высокий
|
||||
default_priority_immediate: Немедленный
|
||||
@@ -272,7 +272,7 @@ ru:
|
||||
default_role_manager: Менеджер
|
||||
default_role_reporter: Генератор отчетов
|
||||
default_tracker_bug: Ошибка
|
||||
default_tracker_feature: Изменение
|
||||
default_tracker_feature: Улучшение
|
||||
default_tracker_support: Поддержка
|
||||
|
||||
enumeration_activities: Действия (учет времени)
|
||||
|
||||
@@ -742,7 +742,7 @@ zh:
|
||||
label_user_mail_option_none: "不收取任何通知"
|
||||
label_user_mail_option_only_my_events: "只收取我跟踪或参与的项目的通知"
|
||||
label_user_mail_option_only_assigned: "只收取分配给我的"
|
||||
label_user_mail_option_only_owner: "只收取我是创建者的"
|
||||
label_user_mail_option_only_owner: 只收取由我创建的
|
||||
label_user_mail_no_self_notified: "不要发送对我自己提交的修改的通知"
|
||||
label_registration_activation_by_email: 通过邮件认证激活帐号
|
||||
label_registration_manual_activation: 手动激活帐号
|
||||
|
||||
@@ -51,7 +51,8 @@ namespace :test do
|
||||
(supported_scms - [:subversion, :mercurial]).each do |scm|
|
||||
desc "Creates a test #{scm} repository"
|
||||
task scm => :create_dir do
|
||||
system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"
|
||||
# system "gunzip < test/fixtures/repositories/#{scm}_repository.tar.gz | tar -xv -C tmp/test"
|
||||
system "tar -xvz -C tmp/test -f test/fixtures/repositories/#{scm}_repository.tar.gz"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ p>. right aligned
|
||||
p=. centered
|
||||
</pre>
|
||||
|
||||
<p style="text-align:center;">This is centered paragraph.</p>
|
||||
<p style="text-align:center;">This is a centered paragraph.</p>
|
||||
|
||||
|
||||
<h3><a name="10" class="wiki-page"></a>Blockquotes</h3>
|
||||
|
||||
@@ -22,7 +22,7 @@ require 'roles_controller'
|
||||
class RolesController; def rescue_action(e) raise e end; end
|
||||
|
||||
class RolesControllerTest < ActionController::TestCase
|
||||
fixtures :roles, :users, :members, :member_roles, :workflows
|
||||
fixtures :roles, :users, :members, :member_roles, :workflows, :trackers
|
||||
|
||||
def setup
|
||||
@controller = RolesController.new
|
||||
|
||||
Reference in New Issue
Block a user