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
3315e89d
Commit
3315e89d
authored
Sep 15, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ui-fixes' into 'master'
Improve UI for last push widget and web editor See merge request !1296
parents
080a086d
dacff8f0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
27 deletions
+49
-27
app/assets/stylesheets/generic/blocks.scss
app/assets/stylesheets/generic/blocks.scss
+5
-0
app/assets/stylesheets/generic/common.scss
app/assets/stylesheets/generic/common.scss
+4
-0
app/assets/stylesheets/pages/editor.scss
app/assets/stylesheets/pages/editor.scss
+15
-3
app/views/events/_event_last_push.html.haml
app/views/events/_event_last_push.html.haml
+12
-12
app/views/projects/_last_push.html.haml
app/views/projects/_last_push.html.haml
+12
-11
app/views/projects/blob/edit.html.haml
app/views/projects/blob/edit.html.haml
+1
-1
No files found.
app/assets/stylesheets/generic/blocks.scss
View file @
3315e89d
...
...
@@ -36,6 +36,11 @@
margin-bottom
:
0
;
}
&
.clear-block
{
margin-bottom
:
$gl-padding
-
1px
;
padding-bottom
:
$gl-padding
;
}
&
.second-block
{
margin-top
:
-1px
;
margin-bottom
:
0
;
...
...
app/assets/stylesheets/generic/common.scss
View file @
3315e89d
...
...
@@ -377,4 +377,8 @@ table {
height
:
56px
;
margin-top
:
-
$gl-padding
;
padding-top
:
$gl-padding
;
&
.no-bottom
{
margin-bottom
:
0
;
}
}
app/assets/stylesheets/pages/editor.scss
View file @
3315e89d
...
...
@@ -9,6 +9,10 @@
width
:
100%
;
}
.ace_gutter-cell
{
background-color
:
$background-color
;
}
.cancel-btn
{
color
:
#B94A48
;
&
:hover
{
...
...
@@ -32,14 +36,12 @@
.file-title
{
@extend
.monospace
;
font-size
:
14px
;
padding
:
5px
;
}
.editor-ref
{
background
:
$background-color
;
padding
:
11px
15px
;
border-right
:
1px
solid
#CCC
;
border-right
:
1px
solid
$border-color
;
display
:
inline-block
;
margin
:
-5px
-5px
;
margin-right
:
10px
;
...
...
@@ -50,5 +52,15 @@
display
:
inline-block
;
width
:
200px
;
}
.form-control
{
margin-top
:
-3px
;
}
}
.form-actions
{
margin
:
-
$gl-padding
;
margin-top
:
0
;
padding
:
$gl-padding
}
}
app/views/events/_event_last_push.html.haml
View file @
3315e89d
-
if
show_last_push_widget?
(
event
)
.event-last-push
.event-last-push-text
%span
You pushed to
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
do
%strong
=
event
.
ref_name
%span
at
%strong
=
link_to_project
event
.
project
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
.gray-content-block.clear-block
.event-last-push
.event-last-push-text
%span
You pushed to
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
do
%strong
=
event
.
ref_name
%span
at
%strong
=
link_to_project
event
.
project
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
.pull-right
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-info btn-sm"
do
Create Merge Request
%hr
.pull-right
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-info btn-sm"
do
Create Merge Request
app/views/projects/_last_push.html.haml
View file @
3315e89d
-
if
event
=
last_push_event
-
if
show_last_push_widget?
(
event
)
.hidden-xs.center
.slead
%span
You pushed to
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
do
%strong
=
event
.
ref_name
branch
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
%div
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-info btn-sm"
do
Create Merge Request
%hr
.gray-content-block.top-block.clear-block.hidden-xs
.event-last-push
.event-last-push-text
%span
You pushed to
=
link_to
namespace_project_commits_path
(
event
.
project
.
namespace
,
event
.
project
,
event
.
ref_name
)
do
%strong
=
event
.
ref_name
branch
#{
time_ago_with_tooltip
(
event
.
created_at
)
}
.pull-right
=
link_to
new_mr_path_from_push_event
(
event
),
title:
"New Merge Request"
,
class:
"btn btn-info btn-sm"
do
Create Merge Request
app/views/projects/blob/edit.html.haml
View file @
3315e89d
-
page_title
"Edit"
,
@blob
.
path
,
@ref
.file-editor
%ul
.
nav.nav-tabs
.js-edit-mode
%ul
.
center-top-menu.no-bottom
.js-edit-mode
%li
.active
=
link_to
'#editor'
do
%i
.fa.fa-edit
...
...
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