Project

General

Profile

Patch #3901 » 0001-Introducing-a-configurable-length-of-the-short-proje.patch

Bernhard Furtmueller, 2009-09-22 14:10

View differences:

app/helpers/projects_helper.rb
classes = (ancestors.empty? ? 'root' : 'child')
s << "<li class='#{classes}'><div class='#{classes}'>" +
link_to(h(project), {:controller => 'projects', :action => 'show', :id => project}, :class => "project #{User.current.member_of?(project) ? 'my-project' : nil}")
s << "<div class='wiki description'>#{textilizable(project.short_description, :project => project)}</div>" unless project.description.blank?
s << "<div class='wiki description'>#{textilizable(project.short_description(Setting.short_desc_length), :project => project)}</div>" unless project.description.blank?
s << "</div>\n"
ancestors << project
end
app/views/admin/projects.rhtml
<% for project in @projects %>
<tr class="<%= cycle("odd", "even") %> <%= css_project_classes(project) %>">
<td class="name" style="padding-left: <%= project.level %>em;"><%= project.active? ? link_to(h(project.name), :controller => 'projects', :action => 'settings', :id => project) : h(project.name) %></td>
<td><%= textilizable project.short_description, :project => project %></td>
<td><%= textilizable project.short_description(Setting.short_desc_length), :project => project %></td>
<td align="center"><%= image_tag 'true.png' if project.is_public? %></td>
<td align="center"><%= format_date(project.created_on) %></td>
<td class="buttons">
app/views/settings/_general.rhtml
<p><label><%= l(:setting_diff_max_lines_displayed) %></label>
<%= text_field_tag 'settings[diff_max_lines_displayed]', Setting.diff_max_lines_displayed, :size => 6 %></p>
<p><label><%= l(:setting_short_desc_length) %></label>
<%= text_field_tag 'settings[short_desc_length]', Setting.short_desc_length, :size => 6 %></p>
</div>
<%= submit_tag l(:button_save) %>
app/views/welcome/index.rhtml
<% for project in @projects %>
<li>
<%= link_to h(project.name), :controller => 'projects', :action => 'show', :id => project %> (<%= format_time(project.created_on) %>)
<%= textilizable project.short_description, :project => project %>
<%= textilizable project.short_description(Setting.short_desc_length), :project => project %>
</li>
<% end %>
</ul>
config/locales/bg.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/bs.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/ca.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/cs.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/da.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/de.yml
mail_body_wiki_content_updated: "Die Wiki-Seite '{{page}}' wurde von {{author}} aktualisiert."
permission_add_project: Erstelle Projekt
setting_new_project_user_role_id: Rolle einem Nicht-Administrator zugeordnet, welcher ein Projekt erstellt
setting_short_desc_length: Länge der gekürzten Projektbeschreibung
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/en.yml
setting_openid: Allow OpenID login and registration
setting_password_min_length: Minimum password length
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
permission_add_project: Create project
permission_edit_project: Edit project
config/locales/es.yml
mail_body_wiki_content_updated: La página wiki '{{page}}' ha sido actualizada por {{author}}.
permission_add_project: Crear proyecto
setting_new_project_user_role_id: Permiso asignado a un usuario no-administrador para crear proyectos
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/fi.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/fr.yml
setting_openid: "Autoriser l'authentification et l'enregistrement OpenID"
setting_password_min_length: Longueur minimum des mots de passe
setting_new_project_user_role_id: Rôle donné à un utilisateur non-administrateur qui crée un projet
setting_short_desc_length: Length of short project description
permission_add_project: Créer un projet
permission_edit_project: Modifier le projet
config/locales/gl.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/he.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/hu.yml
mail_body_wiki_content_updated: A '{{page}}' wiki oldalt {{author}} frissítette.
permission_add_project: Projekt létrehozása
setting_new_project_user_role_id: Projekt létrehozási jog nem adminisztrátor felhasználóknak
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/it.yml
mail_body_wiki_content_updated: La pagina '{{page}}' wiki è stata aggiornata da{{author}}.
permission_add_project: Crea progetto
setting_new_project_user_role_id: Ruolo assegnato agli utenti non amministratori che creano un progetto
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/ja.yml
setting_openid: OpenIDによるログインと登録
setting_password_min_length: パスワードの最低必要文字数
setting_new_project_user_role_id: 管理者以外のユーザが作成したプロジェクトに設定するロール
setting_short_desc_length: Length of short project description
permission_add_project: プロジェクトの追加
permission_edit_project: プロジェクトの編集
config/locales/ko.yml
setting_openid: OpenID 로그인과 등록 허용
setting_password_min_length: 최소 암호 길이
setting_new_project_user_role_id: 프로젝트를 만든 일반사용자에게 주어질 권한
setting_short_desc_length: Length of short project description
permission_add_project: 프로젝트 생성
permission_edit_project: 프로젝트 편집
config/locales/lt.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/nl.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/no.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/pl.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/pt-BR.yml
mail_body_wiki_content_updated: A página wiki '{{page}}' foi atualizada por {{author}}.
permission_add_project: Criar projeto
setting_new_project_user_role_id: Papel dado a um usuário não administrador que crie um projeto
setting_short_desc_length: Length of short project description
label_view_all_revisions: Ver todas as revisões
label_tag: Etiqueta
label_branch: Ramo
config/locales/pt.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/ro.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/ru.yml
mail_body_wiki_content_updated: "{{author}} обновил(а) wiki-страницу '{{page}}'."
permission_add_project: Создание проекта
setting_new_project_user_role_id: Роль, назначаемая пользователю, создавшему проект
setting_short_desc_length: Length of short project description
label_view_all_revisions: Показать все ревизии
label_tag: Метка
label_branch: Ветвь
config/locales/sk.yml
mail_body_wiki_content_updated: Wiki stránka '{{page}}' bola aktualizovaná užívateľom {{author}}.
setting_repositories_encodings: Kódovanie repozitára
setting_new_project_user_role_id: Rola dána non-admin užívateľovi, ktorý vytvorí projekt
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/sl.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/sr.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/sv.yml
setting_openid: Tillåt inloggning och registrering med OpenID
setting_password_min_length: Minsta tillåtna lösenordslängd
setting_new_project_user_role_id: Tilldelad roll för en icke-administratör som skapar ett projekt
setting_short_desc_length: Length of short project description
permission_add_project: Skapa projekt
permission_edit_project: Ändra projekt
config/locales/th.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/tr.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/uk.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/vi.yml
mail_body_wiki_content_updated: The '{{page}}' wiki page has been updated by {{author}}.
permission_add_project: Create project
setting_new_project_user_role_id: Role given to a non-admin user who creates a project
setting_short_desc_length: Length of short project description
label_view_all_revisions: View all revisions
label_tag: Tag
label_branch: Branch
config/locales/zh-TW.yml
setting_openid: 允許使用 OpenID 登入與註冊
setting_password_min_length: 密碼最小長度
setting_new_project_user_role_id: 管理者以外之用戶建立新專案時,將被指派的角色
setting_short_desc_length: Length of short project description
permission_add_project: 建立專案
permission_edit_project: 編輯專案
config/locales/zh.yml
setting_openid: 允许使用OpenID登录和注册
setting_password_min_length: 最短密码长度
setting_new_project_user_role_id: 非管理员用户新建项目时将被赋予的(在该项目中的)角色
setting_short_desc_length: Length of short project description
permission_add_project: 新建项目
permission_edit_project: 编辑项目
config/settings.yml
default: 0
openid:
default: 0
short_desc_length:
default: 255
(1-1/2)