#349: updated locales, added shared template

This commit is contained in:
Vokhmin Alexey V 2012-10-02 19:20:58 +04:00
parent c7fda1a810
commit ba7a7b20a5
7 changed files with 41 additions and 4 deletions

View File

@ -0,0 +1,39 @@
- avatar_url ||= 'ava-big.png'
- edit_link ||= nil
- user ||= nil
- group ||= nil
- name ||= uname
.avatar
= image_tag avatar_url
- if edit_link
%br
= edit_link
.info
%h3= title uname
= name
- if user
%br
= mail_to user.email, user.email, :encode => "javascript"
%br
- if user
%h4= t("activerecord.attributes.user.professional_experience") + ":"
%p= user.professional_experience
- else
%h4= t("activerecord.attributes.group.description") + ":"
%p= group.description
.content
%h4= t("layout.projects.public_projects_list") + ":"
%p
=form_tag search_path, :id => 'filter_projects', :method => :get do
=tracker_search_field(:search, t('layout.find_project'))
%br
%p
- projects.each do |project|
= link_to project.name, project
%br
%br
= will_paginate projects
%br
:javascript
$('article .all').addClass('verybigpadding');

View File

@ -16,7 +16,6 @@ en:
description: Descripton
leave_group: Leave group
projects_list: Projects list
public_projects_list: Public projects list
public_profile: Public profile
delete_warning: Attention! Deleted group can not be restored!

View File

@ -16,7 +16,6 @@ ru:
description: Описание
leave_group: Покинуть группу
projects_list: Список проектов
public_projects_list: Список публичных проектов
public_profile: Публичный профиль
delete_warning: Внимание! Удаленная группа восстановлению не подлежит.

View File

@ -2,6 +2,7 @@ en:
layout:
projects:
add: Add
public_projects_list: Public projects list
edit: Settings
fork_and_edit: Fork
fork_to: Fork to %{to}

View File

@ -2,6 +2,7 @@ ru:
layout:
projects:
add: Добавить
public_projects_list: Список публичных проектов
edit: Настройки
fork_and_edit: Клонировать
fork_to: Клонировать в %{to}

View File

@ -15,7 +15,6 @@ en:
own_projects: My projects
part_projects: Participate projects
filter_header: Filter
public_projects_list: Public projects list
public_data_edit_warning: This data is able for public profile. If you don't want to show some data, just don't fill them.
user_private_settings: Settings
settings_notifier: Notification center

View File

@ -15,7 +15,6 @@ ru:
own_projects: Мои проекты
part_projects: Участвую в проектах
filter_header: Фильтр
public_projects_list: Список публичных проектов
public_data_edit_warning: Данные доступны для публичного профиля. Если вы не хотите показывать какие-либо данные, просто не заполняйте их.
user_private_settings: Настройки
settings_notifier: Центр подписки