summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-23 09:44:28 -0700
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-03-23 09:44:28 -0700
commit81d603e2c1be5b45a623eec4f5ea9a70abcc676c (patch)
treee1f0269f55b58c6610fda7c94b4700f82561e105 /app/views
parent78fe7270ab13b8d12d2de46488a37993a11029f6 (diff)
parente24da35984c13132e204ff923e4b75600ebed56e (diff)
downloadgitlab-ce-81d603e2c1be5b45a623eec4f5ea9a70abcc676c.tar.gz
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
Diffstat (limited to 'app/views')
-rw-r--r--app/views/admin/services/_form.html.haml13
-rw-r--r--app/views/users/_projects.html.haml2
-rw-r--r--app/views/users/calendar.html.haml5
-rw-r--r--app/views/users/calendar_activities.html.haml54
4 files changed, 40 insertions, 34 deletions
diff --git a/app/views/admin/services/_form.html.haml b/app/views/admin/services/_form.html.haml
index a953833b37c..18b7e8ba270 100644
--- a/app/views/admin/services/_form.html.haml
+++ b/app/views/admin/services/_form.html.haml
@@ -14,6 +14,11 @@
= preserve do
= markdown @service.help
+ .form-group
+ = f.label :active, "Active", class: "control-label"
+ .col-sm-10
+ = f.check_box :active
+
- if @service.supported_events.length > 1
.form-group
= f.label :url, "Trigger", class: 'control-label'
@@ -34,6 +39,14 @@
%strong Tag push events
%p.light
This url will be triggered when a new tag is pushed to the repository
+ - if @service.supported_events.include?("note")
+ %div
+ = f.check_box :note_events, class: 'pull-left'
+ .prepend-left-20
+ = f.label :note_events, class: 'list-label' do
+ %strong Comments
+ %p.light
+ This url will be triggered when someone adds a comment
- if @service.supported_events.include?("issue")
%div
= f.check_box :issues_events, class: 'pull-left'
diff --git a/app/views/users/_projects.html.haml b/app/views/users/_projects.html.haml
index 6c7779be30e..b7383d5594e 100644
--- a/app/views/users/_projects.html.haml
+++ b/app/views/users/_projects.html.haml
@@ -1,5 +1,5 @@
- if @contributed_projects.present?
- .panel.panel-default
+ .panel.panel-default.contributed-projects
.panel-heading Projects contributed to
= render 'shared/projects_list',
projects: @contributed_projects.sort_by(&:star_count).reverse,
diff --git a/app/views/users/calendar.html.haml b/app/views/users/calendar.html.haml
index d113ceeb753..488f49267c7 100644
--- a/app/views/users/calendar.html.haml
+++ b/app/views/users/calendar.html.haml
@@ -1,4 +1,7 @@
-%h4 Commits calendar
+%h4
+ Contributions calendar
+ .pull-right
+ %small Issues, merge requests and push events
#cal-heatmap.calendar
:javascript
new calendar(
diff --git a/app/views/users/calendar_activities.html.haml b/app/views/users/calendar_activities.html.haml
index 7c0cecfadb5..027a93a75fc 100644
--- a/app/views/users/calendar_activities.html.haml
+++ b/app/views/users/calendar_activities.html.haml
@@ -1,33 +1,23 @@
-.calendar_commit_activity
- %hr
- %h4
- Commit Activity
- %strong
- - if @commit_count == 0
- no
- - else
- = @commit_count
- %span.calendar_commit_date
- unique
- = 'commit'.pluralize(@commit_count)
- on
- = @calendar_date.strftime("%b %d, %Y") rescue ''
- -unless @commit_count == 0
- %hr
- - @calendar_activities.each do |project, commits|
- - next if commits.empty?
- %div.js-toggle-container
+%h4.prepend-top-20
+ %span.light Contributions for
+ %strong #{@calendar_date.to_s(:short)}
+
+%ul.bordered-list
+ - @events.sort_by(&:created_at).each do |event|
+ %li
+ %span.light
+ %i.fa.fa-clock-o
+ = event.created_at.to_s(:time)
+ - if event.push?
+ #{event.action_name} #{event.ref_type} #{event.ref_name}
+ - else
+ = event_action_name(event)
+ - if event.target
+ %strong= link_to "##{event.target_iid}", [event.project.namespace.becomes(Namespace), event.project, event.target]
+
+ at
%strong
- = pluralize(commits.count, 'commit')
- in project
- = link_to project.name_with_namespace, project_path(project)
- %a.text-expander.js-toggle-button &hellip;
- %hr
- %div.js-toggle-content
- - commits.each do |commit|
- %span.monospace
- = commit.committed_date.strftime("%H:%M")
- = link_to commit.short_id, namespace_project_commit_path(project.namespace, project, commit), class: "commit_short_id"
- = link_to commit.message, namespace_project_commit_path(project.namespace, project, commit), class: "commit-row-message str-truncated"
- %br
- %hr
+ - if event.project
+ = link_to_project event.project
+ - else
+ = event.project_name