[#98] add top menu for activity & tracker/pull requests
This commit is contained in:
parent
d3ac9d1a2c
commit
942d5a669e
Binary file not shown.
Before Width: | Height: | Size: 2.8 KiB |
|
@ -2025,4 +2025,12 @@ article .activity .top {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
th { text-align: center; }
|
th { text-align: center; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.activity-tabs {
|
||||||
|
margin: 10px 0 0 0;
|
||||||
|
background: none;
|
||||||
|
-webkit-box-shadow: 0;
|
||||||
|
-moz-box-shadow: 0;
|
||||||
|
box-shadow: 0;
|
||||||
|
}
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
.sub-menu
|
.sub-menu.activity-tabs
|
||||||
%nav
|
%nav
|
||||||
%ul
|
%ul
|
||||||
- (collection = t 'feed_menu').each do |base, title|
|
- (collection = t 'feed_menu').each do |base, title|
|
||||||
%li= link_to title, root_path(:filter => base), :class => controller_name == 'activity_feeds' && @filter == base ? 'active' : ''
|
%li= link_to title, root_path(:filter => base), :class => controller_name == 'activity_feeds' && @filter == base ? 'active' : ''
|
||||||
%li
|
-#
|
||||||
= image_tag 'menu-delimiter.png', :style => 'margin-bottom: -7px;'
|
%li
|
||||||
%li=link_to t('users.users.issues_index.title'), issues_path, :class => controller_name== 'users' && action_name == 'issues' ? 'active' : ''
|
= image_tag 'menu-delimiter.png', :style => 'margin-bottom: -7px;'
|
||||||
|
%li=link_to t('users.users.issues_index.title'), issues_path, :class => controller_name== 'users' && action_name == 'issues' ? 'active' : ''
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
- content_for :feed_tabs do
|
||||||
|
.sub-menu
|
||||||
|
%nav
|
||||||
|
%ul
|
||||||
|
%li= link_to t('activity_menu.activity_feed'), root_path, :class => controller_name == 'activity_feeds' ? 'active' : ''
|
||||||
|
%li= link_to t('activity_menu.tracker'), issues_path, :class => controller_name == 'users' && action_name == 'issues' ? 'active' : ''
|
||||||
|
%li= link_to t('activity_menu.pull_requests'), root_path, :class => controller_name == 'users' && action_name == 'pull_requests' ? 'active' : ''
|
|
@ -2,7 +2,8 @@
|
||||||
%h3.fix
|
%h3.fix
|
||||||
= t("layout.activity_feed.header")
|
= t("layout.activity_feed.header")
|
||||||
= link_to image_tag("rss.ico", :width => '15px', :height => '15px', :class => 'atom_icon'), atom_activity_feeds_path(:format => 'atom', :token => current_user.authentication_token)
|
= link_to image_tag("rss.ico", :width => '15px', :height => '15px', :class => 'atom_icon'), atom_activity_feeds_path(:format => 'atom', :token => current_user.authentication_token)
|
||||||
|
=render('feed_tabs')
|
||||||
=render 'list'
|
=render 'list'
|
||||||
|
|
||||||
- content_for :sidebar, render('sidebar')
|
- content_for :sidebar, render('sidebar')
|
||||||
- content_for :feed_tabs, render('feed_tabs')
|
-render 'top_menu'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
-set_meta_tags :title => t('.title')
|
-set_meta_tags :title => t('.title')
|
||||||
-content_for :feed_tabs, render('activity_feeds/feed_tabs')
|
-render('activity_feeds/top_menu')
|
||||||
-content_for :sidebar do
|
-content_for :sidebar do
|
||||||
=form_tag issues_path, :id => 'filter_issues', :method => :get do
|
=form_tag issues_path, :id => 'filter_issues', :method => :get do
|
||||||
.bordered
|
.bordered
|
||||||
|
|
|
@ -35,6 +35,10 @@ en:
|
||||||
readme: Readme
|
readme: Readme
|
||||||
settings: Settings
|
settings: Settings
|
||||||
pull_requests: Pull Requests (%{count})
|
pull_requests: Pull Requests (%{count})
|
||||||
|
activity_menu:
|
||||||
|
activity_feed: Activity Feed
|
||||||
|
tracker: Tracker
|
||||||
|
pull_requests: Pull Requests
|
||||||
feed_menu:
|
feed_menu:
|
||||||
all: All
|
all: All
|
||||||
code: Code
|
code: Code
|
||||||
|
|
|
@ -35,6 +35,10 @@ ru:
|
||||||
readme: Readme
|
readme: Readme
|
||||||
settings: Настройки
|
settings: Настройки
|
||||||
pull_requests: Пул реквесты (%{count})
|
pull_requests: Пул реквесты (%{count})
|
||||||
|
activity_menu:
|
||||||
|
activity_feed: Лента активности
|
||||||
|
tracker: Трекер
|
||||||
|
pull_requests: Пул реквесты
|
||||||
feed_menu:
|
feed_menu:
|
||||||
all: Все
|
all: Все
|
||||||
code: Код
|
code: Код
|
||||||
|
|
Loading…
Reference in New Issue