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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-27 13:31:50 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-11-27 13:31:50 +0400
commit9aaf478f10993ac134bf86546c95dbb4284f9f5f (patch)
treeabbe67445e187a8f70c4292d2816a89911c464b1 /app
parentb79d4c9b2875463ab15ec3a3ccbdee3b0a7e29fd (diff)
parent042ec53c403fffeea1a75e90e059bc61b856fca1 (diff)
Merge branch 'improve/preview_button' of /home/git/repositories/gitlab/gitlabhq
Diffstat (limited to 'app')
-rw-r--r--app/assets/stylesheets/sections/notes.scss10
-rw-r--r--app/views/projects/commits/_commit.html.haml2
-rw-r--r--app/views/projects/notes/_form.html.haml8
-rw-r--r--app/views/shared/_merge_requests.html.haml1
4 files changed, 12 insertions, 9 deletions
diff --git a/app/assets/stylesheets/sections/notes.scss b/app/assets/stylesheets/sections/notes.scss
index fc84d157755..f0254c81dda 100644
--- a/app/assets/stylesheets/sections/notes.scss
+++ b/app/assets/stylesheets/sections/notes.scss
@@ -130,6 +130,7 @@ ul.notes {
&.notes_line {
text-align: center;
padding: 10px 0;
+ background: #eee;
}
&.notes_line2 {
text-align: center;
@@ -275,10 +276,9 @@ ul.notes {
// preview/edit buttons
> a {
- font-size: 24px;
- padding: 4px;
position: absolute;
- right: 10px;
+ right: 5px;
+ top: 116px;
}
.note_preview {
background: #f5f5f5;
@@ -325,7 +325,7 @@ ul.notes {
padding: 0 5px;
.note-form-option {
- margin-top: 10px;
+ margin-top: 8px;
margin-left: 30px;
@extend .pull-left;
}
@@ -366,4 +366,4 @@ ul.notes {
.parallel-comment {
padding: 6px;
-} \ No newline at end of file
+}
diff --git a/app/views/projects/commits/_commit.html.haml b/app/views/projects/commits/_commit.html.haml
index d70fd96accd..9c60c409808 100644
--- a/app/views/projects/commits/_commit.html.haml
+++ b/app/views/projects/commits/_commit.html.haml
@@ -7,7 +7,7 @@
.notes_count
- notes = project.notes.for_commit_id(commit.id)
- if notes.any?
- %span.badge.badge-info
+ %span.label.label-gray
%i.icon-comment
= notes.count
diff --git a/app/views/projects/notes/_form.html.haml b/app/views/projects/notes/_form.html.haml
index 7add2921830..a742140cf5a 100644
--- a/app/views/projects/notes/_form.html.haml
+++ b/app/views/projects/notes/_form.html.haml
@@ -7,10 +7,12 @@
= f.hidden_field :noteable_type
.note_text_and_preview.js-toggler-container
- %a.js-note-preview-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Preview", data: {url: preview_project_notes_path(@project)} }
+ %a.btn.btn-primary.js-note-preview-button.js-toggler-target.turn-off{ href: "javascript:;", data: {url: preview_project_notes_path(@project)} }
%i.icon-eye-open
- %a.js-note-edit-button.js-toggler-target.turn-off{ href: "javascript:;", title: "Edit" }
+ Preview
+ %a.btn.btn-primary.js-note-edit-button.js-toggler-target.turn-off{ href: "javascript:;" }
%i.icon-edit
+ Write
= f.text_area :note, size: 255, class: 'note_text js-note-text js-gfm-input turn-on'
.note_preview.js-note-preview.turn-off
@@ -27,7 +29,7 @@
%a.btn.grouped.js-close-discussion-note-form Cancel
.note-form-option
- %a.choose-btn.btn.btn-small.js-choose-note-attachment-button
+ %a.choose-btn.btn.js-choose-note-attachment-button
%i.icon-paper-clip
%span Choose File ...
&nbsp;
diff --git a/app/views/shared/_merge_requests.html.haml b/app/views/shared/_merge_requests.html.haml
index b7a7ca8fcc8..368aec5a462 100644
--- a/app/views/shared/_merge_requests.html.haml
+++ b/app/views/shared/_merge_requests.html.haml
@@ -4,6 +4,7 @@
- project = group[0]
.title
= link_to_project project
+ = link_to 'show all', project_merge_requests_path(project), class: 'pull-right'
%ul.well-list.mr-list
- group[1].each do |merge_request|
= render 'projects/merge_requests/merge_request', merge_request: merge_request