diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index ed9ebf705..7018b8ac0 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -9,7 +9,7 @@ = csrf_meta_tag %body - .wrap + .wrap.columns %header .left .middle diff --git a/app/views/projects/_submenu.html.haml b/app/views/projects/_submenu.html.haml new file mode 100644 index 000000000..3fb11e57d --- /dev/null +++ b/app/views/projects/_submenu.html.haml @@ -0,0 +1,14 @@ +- content_for :sub_menu do + - act = action_name.to_sym + - contr = controller_name.to_sym + .left + = @project.name + %nav + %ul + %li= link_to t("project_menu.project"), project_path(@project), {:class => (act == :show && contr == :projects) ? 'active' : ''} + %li= link_to t("project_menu.commits"), commits_path(@project), {:class => (act == :index && contr == :commits) ? 'active' : ''} + %li= link_to t("project_menu.builds"), project_build_lists_path(@project), {:class => (act == :index && contr == :builds) ? 'active' : ''} + %li= link_to t("project_menu.tracker"), project_issues_path(@project), {:class => (act == :index && contr == :issues) ? 'active' : ''} + %li= link_to t("project_menu.wiki"), project_wiki_index_path(@project), {:class => (act == :index && contr == :wiki) ? 'active' : ''} + %li= link_to t("project_menu.readme"), "#" #pending + %li= link_to t("project_menu.settings"), edit_project_path(@project), {:class => (act == :edit && contr == :projects) ? 'active' : ''} diff --git a/config/locales/menu.en.yml b/config/locales/menu.en.yml index 4ebf69581..3736e6cb6 100644 --- a/config/locales/menu.en.yml +++ b/config/locales/menu.en.yml @@ -19,3 +19,11 @@ en: contacts: Contacts tos: Terms Of Service security: Security + project_menu: + project: Project + commits: Commits + builds: Builds + tracker: Tracker + wiki: Wiki + readme: Readme + settings: Settings \ No newline at end of file diff --git a/config/locales/menu.ru.yml b/config/locales/menu.ru.yml index 54933bdcb..2a56ac703 100644 --- a/config/locales/menu.ru.yml +++ b/config/locales/menu.ru.yml @@ -19,3 +19,11 @@ ru: contacts: Контакты tos: Условия использования security: Безопасность + project_menu: + project: Проект + commits: Коммиты + builds: Сборки + tracker: Трекер + wiki: Wiki + readme: Readme + settings: Настройки \ No newline at end of file