Changed author display on issues, news and document files.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@732 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2007-09-15 15:20:08 +00:00
parent 89b349818b
commit 3c6ddc9cec
17 changed files with 41 additions and 7 deletions

View File

@ -73,6 +73,10 @@ module ApplicationHelper
@date_format_setting == 0 ? l_datetime(time) : (time.strftime("%Y-%m-%d") + ' ' + l_time(time))
end
def authoring(created, author)
l(:label_added_time_by, author.name, distance_of_time_in_words(Time.now, created))
end
def day_name(day)
l(:general_day_names).split(',')[day-1]
end

View File

@ -19,7 +19,7 @@
</div>
<%= link_to attachment.filename, :action => 'download', :id => @document, :attachment_id => attachment %>
(<%= number_to_human_size attachment.filesize %>)<br />
<em><%= attachment.author.name %>, <%= format_date(attachment.created_on) %></em><br />
<span class="author"><%= authoring attachment.created_on, attachment.author %></span><br />
<%= lwr(:label_download, attachment.downloads) %>
</li>
<% end %>

View File

@ -8,7 +8,7 @@
<h2><%= @issue.tracker.name %> #<%= @issue.id %>: <%=h @issue.subject %></h2>
<p class="author">
<%= l(:label_added_time_by, distance_of_time_in_words(Time.now, @issue.created_on), link_to_user(@issue.author)) %>.
<%= authoring @issue.created_on, @issue.author %>.
<%= l(:label_updated_time, distance_of_time_in_words(Time.now, @issue.updated_on)) if @issue.created_on != @issue.updated_on %>.
</p>
<div class="box">

View File

@ -1,5 +1,5 @@
<p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %>
<%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %><br />
<% unless news.summary.blank? %><%=h news.summary %><br /><% end %>
<em><%= news.author.name %>, <%= format_time(news.created_on) %></em><br />
<%= news.comments_count %> <%= lwr(:label_comment, news.comments_count).downcase %><br /></p>
<span class="author"><%= authoring news.created_on, news.author %>
<%= "<br />#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase}" if news.comments_count > 0 %></span></p>

View File

@ -6,7 +6,7 @@
<h2><%=h @news.title %></h2>
<p><em><% unless @news.summary.empty? %><%=h @news.summary %><br /><% end %>
<%= @news.author.name %>, <%= format_time(@news.created_on) %></em></p>
<span class="author"><%= authoring @news.created_on, @news.author %></span></em></p>
<%= textilizable(@news.description) %>
<br />

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Заглавие
setting_app_subtitle: Описание
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Вход
button_submit: Изпращане

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Applikation Titel
setting_app_subtitle: Applikation Untertitel
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Einloggen
button_submit: OK

View File

@ -417,7 +417,7 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added %s ago by %s
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Login

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Título del aplicación
setting_app_subtitle: Subtítulo del aplicación
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Conexión
button_submit: Someter

View File

@ -417,7 +417,7 @@ label_sort_by: Trier par "%s"
label_send_test_email: Envoyer un email de test
label_feeds_access_key_created_on: Clé d'accès RSS créée il y a %s
label_module_plural: Modules
label_added_time_by: Ajouté il y a %s par %s
label_added_time_by: Ajouté par %s il y a %s
label_updated_time: Mis à jour il y a %s
button_login: Connexion

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Titolo applicazione
setting_app_subtitle: Sottotitolo applicazione
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Login
button_submit: Invia

View File

@ -159,6 +159,7 @@ field_issue_to_id: 関連する問題
field_delay: 遅延
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: アプリケーションのタイトル
setting_app_subtitle: アプリケーションのサブタイトル
@ -417,6 +418,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: ログイン
button_submit: 変更

View File

@ -158,6 +158,7 @@ field_issue_to_id: Gerelateerd issue
field_delay: Vertraging
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Applicatie titel
setting_app_subtitle: Applicatie ondertitel
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Inloggen
button_submit: Toevoegen

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Titulo da aplicacao
setting_app_subtitle: Sub-titulo da aplicacao
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Login
button_submit: Enviar

View File

@ -158,6 +158,7 @@ field_issue_to_id: Tarefa relacionada
field_delay: Atraso
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Título da aplicação
setting_app_subtitle: Sub-título da aplicação
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Login
button_submit: Enviar

View File

@ -158,6 +158,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: Applikationstitel
setting_app_subtitle: Applicationsunderrubrik
@ -416,6 +417,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: Logga in
button_submit: Skicka

View File

@ -161,6 +161,7 @@ field_issue_to_id: Related issue
field_delay: Delay
field_assignable: Issues can be assigned to this role
field_redirect_existing_links: Redirect existing links
field_estimated_hours: Estimated time
setting_app_title: 应用程序标题
setting_app_subtitle: 应用程序子标题
@ -418,6 +419,8 @@ label_sort_by: Sort by "%s"
label_send_test_email: Send a test email
label_feeds_access_key_created_on: RSS access key created %s ago
label_module_plural: Modules
label_added_time_by: Added by %s %s ago
label_updated_time: Updated %s ago
button_login: 登录
button_submit: 提交