Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
6e4ee0df
Commit
6e4ee0df
authored
Mar 20, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make issue and merge request sidebar more compact
* move votes block to participants * make smaller font in sidebar
parent
e494adc2
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
57 deletions
+26
-57
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+7
-1
app/assets/stylesheets/pages/votes.scss
app/assets/stylesheets/pages/votes.scss
+0
-35
app/views/projects/issues/_discussion.html.haml
app/views/projects/issues/_discussion.html.haml
+4
-8
app/views/projects/issues/_issue_context.html.haml
app/views/projects/issues/_issue_context.html.haml
+2
-2
app/views/projects/merge_requests/_discussion.html.haml
app/views/projects/merge_requests/_discussion.html.haml
+4
-6
app/views/votes/_votes_block.html.haml
app/views/votes/_votes_block.html.haml
+9
-5
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
6e4ee0df
...
...
@@ -25,7 +25,7 @@
}
.issuable-context-title
{
font-size
:
1
5
px
;
font-size
:
1
4
px
;
line-height
:
1
.4
;
margin-bottom
:
5px
;
...
...
@@ -39,3 +39,9 @@
margin-right
:
4px
;
}
}
.issuable-affix
.context
{
font-size
:
13px
;
.btn
{
font-size
:
13px
;
}
}
app/assets/stylesheets/pages/votes.scss
View file @
6e4ee0df
.votes
{
font-size
:
13px
;
line-height
:
15px
;
.progress
{
height
:
4px
;
margin
:
0
;
.bar
{
float
:
left
;
height
:
100%
;
}
.bar-success
{
@include
linear-gradient
(
#62C462
,
#51A351
);
background-color
:
#468847
;
}
.bar-danger
{
@include
linear-gradient
(
#EE5F5B
,
#BD362F
);
background-color
:
#B94A48
;
}
}
.upvotes
{
display
:
inline-block
;
color
:
#468847
;
}
.downvotes
{
display
:
inline-block
;
color
:
#B94A48
;
}
}
.votes-block
{
margin
:
6px
;
.downvotes
{
float
:
right
;
}
}
.votes-inline
{
display
:
inline-block
;
margin
:
0
8px
;
}
app/views/projects/issues/_discussion.html.haml
View file @
6e4ee0df
...
...
@@ -6,11 +6,12 @@
=
link_to
'Close Issue'
,
issue_path
(
@issue
,
issue:
{
state_event: :close
},
status_only:
true
),
method: :put
,
class:
"btn btn-grouped btn-close js-note-target-close"
,
title:
"Close Issue"
.row
%section
.col-md-9
.votes-holder.pull-right
#votes
=
render
'votes/votes_block'
,
votable:
@issue
.participants
%span
=
pluralize
(
@issue
.
participants
.
count
,
'participant'
)
-
@issue
.
participants
.
each
do
|
participant
|
=
link_to_member
(
@project
,
participant
,
name:
false
,
size:
24
)
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
%aside
.col-md-3
.issuable-affix
...
...
@@ -20,15 +21,10 @@
%hr
.context
=
render
partial:
'issue_context'
,
locals:
{
issue:
@issue
}
%hr
.clearfix
.votes-holder
%h6
Votes
#votes
=
render
'votes/votes_block'
,
votable:
@issue
-
if
@issue
.
labels
.
any?
%hr
%h6
Labels
.issuable-context-title
%label
Labels
.issue-show-labels
-
@issue
.
labels
.
each
do
|
label
|
=
link_to
namespace_project_issues_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
...
...
app/views/projects/issues/_issue_context.html.haml
View file @
6e4ee0df
...
...
@@ -45,5 +45,5 @@
:coffeescript
$ ->
new Subscription("
#{
toggle_subscription_namespace_project_issue_path
(
@issue
.
project
.
namespace
,
@project
,
@issue
)
}
")
\ No newline at end of file
app/views/projects/merge_requests/_discussion.html.haml
View file @
6e4ee0df
...
...
@@ -7,6 +7,8 @@
.row
%section
.col-md-9
.votes-holder.pull-right
#votes
=
render
'votes/votes_block'
,
votable:
@merge_request
=
render
"projects/merge_requests/show/participants"
=
render
"projects/notes/notes_with_form"
%aside
.col-md-3
...
...
@@ -17,14 +19,10 @@
%hr
.context
=
render
partial:
'projects/merge_requests/show/context'
,
locals:
{
merge_request:
@merge_request
}
%hr
.votes-holder
%h6
Votes
#votes
=
render
'votes/votes_block'
,
votable:
@merge_request
-
if
@merge_request
.
labels
.
any?
%hr
%h6
Labels
.issuable-context-title
%label
Labels
.merge-request-show-labels
-
@merge_request
.
labels
.
each
do
|
label
|
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
...
...
app/views/votes/_votes_block.html.haml
View file @
6e4ee0df
.votes.votes-block
.progress
.progress-bar.progress-bar-success
{
style:
"width: #{votable.upvotes_in_percent}%;"
}
.progress-bar.progress-bar-danger
{
style:
"width: #{votable.downvotes_in_percent}%;"
}
.upvotes
=
"
#{
votable
.
upvotes
}
up"
.downvotes
=
"
#{
votable
.
downvotes
}
down"
.btn-group
-
unless
votable
.
upvotes
.
zero?
.btn.btn-sm.disabled.cgreen
%i
.fa.fa-thumbs-up
=
votable
.
upvotes
-
unless
votable
.
downvotes
.
zero?
.btn.btn-sm.disabled.cred
%i
.fa.fa-thumbs-down
=
votable
.
downvotes
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment