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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
085e5084
Commit
085e5084
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
1f711fd9
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 @
085e5084
...
@@ -25,7 +25,7 @@
...
@@ -25,7 +25,7 @@
}
}
.issuable-context-title
{
.issuable-context-title
{
font-size
:
1
5
px
;
font-size
:
1
4
px
;
line-height
:
1
.4
;
line-height
:
1
.4
;
margin-bottom
:
5px
;
margin-bottom
:
5px
;
...
@@ -39,3 +39,9 @@
...
@@ -39,3 +39,9 @@
margin-right
:
4px
;
margin-right
:
4px
;
}
}
}
}
.issuable-affix
.context
{
font-size
:
13px
;
.btn
{
font-size
:
13px
;
}
}
app/assets/stylesheets/pages/votes.scss
View file @
085e5084
.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
{
.votes-inline
{
display
:
inline-block
;
display
:
inline-block
;
margin
:
0
8px
;
margin
:
0
8px
;
}
}
app/views/projects/issues/_discussion.html.haml
View file @
085e5084
...
@@ -6,11 +6,12 @@
...
@@ -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"
=
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
.row
%section
.col-md-9
%section
.col-md-9
.votes-holder.pull-right
#votes
=
render
'votes/votes_block'
,
votable:
@issue
.participants
.participants
%span
=
pluralize
(
@issue
.
participants
.
count
,
'participant'
)
%span
=
pluralize
(
@issue
.
participants
.
count
,
'participant'
)
-
@issue
.
participants
.
each
do
|
participant
|
-
@issue
.
participants
.
each
do
|
participant
|
=
link_to_member
(
@project
,
participant
,
name:
false
,
size:
24
)
=
link_to_member
(
@project
,
participant
,
name:
false
,
size:
24
)
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
.voting_notes
#notes
=
render
"projects/notes/notes_with_form"
%aside
.col-md-3
%aside
.col-md-3
.issuable-affix
.issuable-affix
...
@@ -20,15 +21,10 @@
...
@@ -20,15 +21,10 @@
%hr
%hr
.context
.context
=
render
partial:
'issue_context'
,
locals:
{
issue:
@issue
}
=
render
partial:
'issue_context'
,
locals:
{
issue:
@issue
}
%hr
.clearfix
.votes-holder
%h6
Votes
#votes
=
render
'votes/votes_block'
,
votable:
@issue
-
if
@issue
.
labels
.
any?
-
if
@issue
.
labels
.
any?
%hr
.issuable-context-title
%h6
Labels
%label
Labels
.issue-show-labels
.issue-show-labels
-
@issue
.
labels
.
each
do
|
label
|
-
@issue
.
labels
.
each
do
|
label
|
=
link_to
namespace_project_issues_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
=
link_to
namespace_project_issues_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
...
...
app/views/projects/issues/_issue_context.html.haml
View file @
085e5084
...
@@ -45,5 +45,5 @@
...
@@ -45,5 +45,5 @@
:coffeescript
:coffeescript
$ ->
$ ->
new Subscription("
#{
toggle_subscription_namespace_project_issue_path
(
@issue
.
project
.
namespace
,
@project
,
@issue
)
}
")
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 @
085e5084
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
.row
.row
%section
.col-md-9
%section
.col-md-9
.votes-holder.pull-right
#votes
=
render
'votes/votes_block'
,
votable:
@merge_request
=
render
"projects/merge_requests/show/participants"
=
render
"projects/merge_requests/show/participants"
=
render
"projects/notes/notes_with_form"
=
render
"projects/notes/notes_with_form"
%aside
.col-md-3
%aside
.col-md-3
...
@@ -17,14 +19,10 @@
...
@@ -17,14 +19,10 @@
%hr
%hr
.context
.context
=
render
partial:
'projects/merge_requests/show/context'
,
locals:
{
merge_request:
@merge_request
}
=
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?
-
if
@merge_request
.
labels
.
any?
%hr
.issuable-context-title
%h6
Labels
%label
Labels
.merge-request-show-labels
.merge-request-show-labels
-
@merge_request
.
labels
.
each
do
|
label
|
-
@merge_request
.
labels
.
each
do
|
label
|
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
=
link_to
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
,
label_name:
label
.
name
)
do
...
...
app/views/votes/_votes_block.html.haml
View file @
085e5084
.votes.votes-block
.votes.votes-block
.progress
.btn-group
.progress-bar.progress-bar-success
{
style:
"width: #{votable.upvotes_in_percent}%;"
}
-
unless
votable
.
upvotes
.
zero?
.progress-bar.progress-bar-danger
{
style:
"width: #{votable.downvotes_in_percent}%;"
}
.btn.btn-sm.disabled.cgreen
.upvotes
=
"
#{
votable
.
upvotes
}
up"
%i
.fa.fa-thumbs-up
.downvotes
=
"
#{
votable
.
downvotes
}
down"
=
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