Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-26 17:30:03 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-08-26 17:30:03 +0400
commit17af835387c996f82b46f3bade67d513b4e40cc5 (patch)
treea98fc3a53601ce398df32a723947d27daff9e3ff /app/views
parent4675ff46e8b1d354d86cdf80ac3bd4f60814dbe3 (diff)
Add event filter for group and project show pages
Diffstat (limited to 'app/views')
-rw-r--r--app/views/dashboard/_activities.html.haml7
-rw-r--r--app/views/groups/show.html.haml1
-rw-r--r--app/views/projects/show.html.haml1
-rw-r--r--app/views/shared/_event_filter.html.haml5
4 files changed, 8 insertions, 6 deletions
diff --git a/app/views/dashboard/_activities.html.haml b/app/views/dashboard/_activities.html.haml
index 2b7d23c225d..89117726317 100644
--- a/app/views/dashboard/_activities.html.haml
+++ b/app/views/dashboard/_activities.html.haml
@@ -1,10 +1,5 @@
= render "events/event_last_push", event: @last_push
-
-.event_filter
- = event_filter_link EventFilter.push, 'Push events'
- = event_filter_link EventFilter.merged, 'Merge events'
- = event_filter_link EventFilter.comments, 'Comments'
- = event_filter_link EventFilter.team, 'Team'
+= render 'shared/event_filter'
- if @events.any?
.content_list
diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml
index 8afc4ab4a12..e613ed3eaa3 100644
--- a/app/views/groups/show.html.haml
+++ b/app/views/groups/show.html.haml
@@ -6,6 +6,7 @@
&nbsp;
%span.cgray You will only see events from projects in this group
%hr
+ = render 'shared/event_filter'
- if @events.any?
.content_list
- else
diff --git a/app/views/projects/show.html.haml b/app/views/projects/show.html.haml
index 8a3427f3980..06ca5169dff 100644
--- a/app/views/projects/show.html.haml
+++ b/app/views/projects/show.html.haml
@@ -3,6 +3,7 @@
.row
.span9
= render "events/event_last_push", event: @last_push
+ = render 'shared/event_filter'
.content_list
.loading.hide
.span3
diff --git a/app/views/shared/_event_filter.html.haml b/app/views/shared/_event_filter.html.haml
new file mode 100644
index 00000000000..ee0b57fbe5a
--- /dev/null
+++ b/app/views/shared/_event_filter.html.haml
@@ -0,0 +1,5 @@
+.event_filter
+ = event_filter_link EventFilter.push, 'Push events'
+ = event_filter_link EventFilter.merged, 'Merge events'
+ = event_filter_link EventFilter.comments, 'Comments'
+ = event_filter_link EventFilter.team, 'Team'