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
ff337964
Commit
ff337964
authored
Nov 01, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update commit page styles
parent
30d4cce0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
59 deletions
+44
-59
app/assets/stylesheets/pages/commit.scss
app/assets/stylesheets/pages/commit.scss
+16
-30
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+28
-29
No files found.
app/assets/stylesheets/pages/commit.scss
View file @
ff337964
...
@@ -36,13 +36,17 @@
...
@@ -36,13 +36,17 @@
padding
:
10px
0
;
padding
:
10px
0
;
margin-bottom
:
0
;
margin-bottom
:
0
;
.commitable-meta
{
@media
(
min-width
:
$screen-sm-min
)
{
display
:
inline-block
;
display
:
flex
;
line-height
:
18px
;
align-items
:
center
;
.commit-meta
{
flex
:
1
;
}
}
}
.commit-hash-full
{
.commit-hash-full
{
@media
(
max-width
:
$screen-
md-min
)
{
@media
(
max-width
:
$screen-
sm-max
)
{
width
:
80px
;
width
:
80px
;
white-space
:
nowrap
;
white-space
:
nowrap
;
overflow
:
hidden
;
overflow
:
hidden
;
...
@@ -52,31 +56,24 @@
...
@@ -52,31 +56,24 @@
}
}
}
}
.commitable-actions
{
.commit-action-buttons
{
@media
(
min-width
:
$screen-sm
)
{
i
{
float
:
right
;
color
:
$gl-icon-color
;
padding-top
:
0
;
font-size
:
13px
;
margin-right
:
3px
;
}
}
.dropdown
{
@media
(
max-width
:
$screen-xs-max
)
{
@media
(
max-width
:
$screen-sm
)
{
.dropdown
{
width
:
100%
;
width
:
100%
;
margin-top
:
10px
;
margin-top
:
10px
;
}
}
}
.dropdown-toggle
{
.dropdown-toggle
{
@media
(
max-width
:
$screen-sm
)
{
width
:
100%
;
width
:
100%
;
}
}
}
}
}
}
.commit-options-dropdown-caret
{
@media
(
max-width
:
$screen-sm
)
{
margin-left
:
0
;
}
}
}
}
.avatar
{
.avatar
{
...
@@ -224,17 +221,6 @@
...
@@ -224,17 +221,6 @@
}
}
}
}
.commit-action-buttons
{
position
:
relative
;
top
:
-1px
;
i
{
color
:
$gl-icon-color
;
font-size
:
13px
;
margin-right
:
3px
;
}
}
/*
/*
* Commit message textarea for web editor and
* Commit message textarea for web editor and
* custom merge request message
* custom merge request message
...
...
app/views/projects/commit/_commit_box.html.haml
View file @
ff337964
.commit-info-row.commit-info-row-header
.commit-info-row.commit-info-row-header
.commit
able
-meta
.commit-meta
%strong
Commit
%strong
Commit
%strong
.monospace.js-details-short
=
@commit
.
short_id
%strong
.monospace.js-details-short
=
@commit
.
short_id
=
link_to
(
"#"
,
class:
"js-details-expand hidden-xs hidden-sm"
)
do
=
link_to
(
"#"
,
class:
"js-details-expand hidden-xs hidden-sm"
)
do
...
@@ -19,35 +19,34 @@
...
@@ -19,35 +19,34 @@
%strong
%strong
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
=
commit_committer_link
(
@commit
,
avatar:
true
,
size:
24
)
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
#{
time_ago_with_tooltip
(
@commit
.
committed_date
)
}
.commitable-actions
.commit-action-buttons
.commit-action-buttons
-
if
defined?
(
@notes_count
)
&&
@notes_count
>
0
-
if
defined?
(
@notes_count
)
&&
@notes_count
>
0
%span
.btn.disabled.btn-grouped.hidden-xs.append-right-10
%span
.btn.disabled.btn-grouped.hidden-xs.append-right-10
=
icon
(
'comment'
)
=
icon
(
'comment'
)
=
@notes_count
=
@notes_count
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"btn btn-default append-right-10 hidden-xs hidden-sm"
do
Browse Files
Browse Files
.dropdown.inline
.dropdown.inline
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%a
.btn.btn-default.dropdown-toggle
{
data:
{
toggle:
"dropdown"
}
}
%span
Options
%span
Options
=
icon
(
'caret-down'
)
=
icon
(
'caret-down'
,
class:
".commit-options-dropdown-caret"
)
%ul
.dropdown-menu.dropdown-menu-align-right
%ul
.dropdown-menu.dropdown-menu-align-right
%li
.visible-xs-block.visible-sm-block
%li
.visible-xs-block.visible-sm-block
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@commit
)
do
Browse Files
Browse Files
-
unless
@commit
.
has_been_reverted?
(
current_user
)
-
unless
@commit
.
has_been_reverted?
(
current_user
)
%li
.clearfix
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
%li
.clearfix
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
=
revert_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.clearfix
%li
.clearfix
=
link_to
"Tag"
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
=
cherry_pick_commit_link
(
@commit
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
has_tooltip:
false
)
%li
.divider
%li
.clearfix
%li
.dropdown-header
=
link_to
"Tag"
,
new_namespace_project_tag_path
(
@project
.
namespace
,
@project
,
ref:
@commit
)
Download
%li
.divider
-
unless
@commit
.
parents
.
length
>
1
%li
.dropdown-header
%li
=
link_to
"Email Patches"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
Download
%li
=
link_to
"Plain Diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
-
unless
@commit
.
parents
.
length
>
1
%li
=
link_to
"Email Patches"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :patch
)
%li
=
link_to
"Plain Diff"
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
,
format: :diff
)
.commit-box
.commit-box
%h3
.commit-title
%h3
.commit-title
...
...
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