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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1e8de503
Commit
1e8de503
authored
Dec 01, 2017
by
Jose Ivan Vargas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replaced some fork icons instances and fixed the Icon component on the MR Widget
parent
a623ddb0
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
12 deletions
+25
-12
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
...s/vue_merge_request_widget/components/mr_widget_header.js
+7
-7
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+6
-0
app/assets/stylesheets/pages/pipelines.scss
app/assets/stylesheets/pages/pipelines.scss
+6
-0
app/views/projects/blob/_editor.html.haml
app/views/projects/blob/_editor.html.haml
+1
-1
app/views/projects/branches/_branch.html.haml
app/views/projects/branches/_branch.html.haml
+2
-1
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+1
-1
app/views/projects/merge_requests/_merge_request.html.haml
app/views/projects/merge_requests/_merge_request.html.haml
+1
-1
app/views/shared/projects/_project.html.haml
app/views/shared/projects/_project.html.haml
+1
-1
No files found.
app/assets/javascripts/vue_merge_request_widget/components/mr_widget_header.js
View file @
1e8de503
import
tooltip
from
'
../../vue_shared/directives/tooltip
'
;
import
{
pluralize
}
from
'
../../lib/utils/text_utility
'
;
import
{
spriteIcon
}
from
'
../../lib/utils/common_utils
'
;
import
Icon
from
'
../../vue_shared/components/icon.vue
'
;
export
default
{
name
:
'
MRWidgetHeader
'
,
...
...
@@ -10,6 +10,9 @@ export default {
directives
:
{
tooltip
,
},
components
:
{
Icon
,
},
computed
:
{
shouldShowCommitsBehindText
()
{
return
this
.
mr
.
divergedCommitsCount
>
0
;
...
...
@@ -26,9 +29,6 @@ export default {
gfm
:
`\`
${
this
.
mr
.
sourceBranch
}
\``
,
});
},
downloadIcon
()
{
return
spriteIcon
(
'
download
'
);
},
},
methods
:
{
isBranchTitleLong
(
branchTitle
)
{
...
...
@@ -85,9 +85,9 @@ export default {
data-toggle="dropdown"
aria-label="Download as"
role="button">
<i
v-html="downloadIcon
">
</i>
<i
con
name="download
">
</i
con
>
<i
class="fa fa-caret-down"
aria-hidden="true">
...
...
app/assets/stylesheets/pages/merge_requests.scss
View file @
1e8de503
...
...
@@ -723,3 +723,9 @@
font-size
:
16px
;
}
}
.fork-sprite
{
width
:
12px
;
height
:
12px
;
margin-right
:
-5px
;
}
app/assets/stylesheets/pages/pipelines.scss
View file @
1e8de503
...
...
@@ -143,6 +143,12 @@
fill
:
$gl-text-color-secondary
;
}
.sprite
{
width
:
12px
;
height
:
12px
;
fill
:
$gl-text-color
;
}
.fa
{
font-size
:
12px
;
color
:
$gl-text-color
;
...
...
app/views/projects/blob/_editor.html.haml
View file @
1e8de503
...
...
@@ -3,7 +3,7 @@
.file-holder-bottom-radius.file-holder.file.append-bottom-default
.js-file-title.file-title.clearfix
{
data:
{
current_action:
action
}
}
.editor-ref
=
icon
(
'code-
fork'
)
=
sprite_icon
(
'
fork'
)
=
ref
%span
.editor-file-name
-
if
current_action?
(
:edit
)
||
current_action?
(
:update
)
...
...
app/views/projects/branches/_branch.html.haml
View file @
1e8de503
...
...
@@ -8,7 +8,8 @@
%li
{
class:
"js-branch-#{branch.name}"
}
%div
=
link_to
project_tree_path
(
@project
,
branch
.
name
),
class:
'item-title str-truncated ref-name'
do
=
icon
(
'code-fork'
,
class:
'append-right-5'
)
+
"
#{
branch
.
name
}
"
=
sprite_icon
(
'fork'
,
size:
8
)
=
branch
.
name
-
if
branch
.
name
==
@repository
.
root_ref
%span
.label.label-primary
default
...
...
app/views/projects/ci/builds/_build.html.haml
View file @
1e8de503
...
...
@@ -22,7 +22,7 @@
-
if
ref
-
if
job
.
ref
.icon-container
=
job
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork
'
)
=
job
.
tag?
?
icon
(
'tag'
)
:
sprite_icon
(
'fork'
,
css_class:
'sprite
'
)
=
link_to
job
.
ref
,
project_ref_path
(
job
.
project
,
job
.
ref
),
class:
"ref-name"
-
else
.light
none
...
...
app/views/projects/merge_requests/_merge_request.html.haml
View file @
1e8de503
...
...
@@ -30,7 +30,7 @@
%span
.project-ref-path
=
link_to
project_ref_path
(
merge_request
.
project
,
merge_request
.
target_branch
),
class:
'ref-name'
do
=
icon
(
'code-fork
'
)
=
sprite_icon
(
'fork'
,
css_class:
'fork-sprite
'
)
=
merge_request
.
target_branch
-
if
merge_request
.
labels
.
any?
...
...
app/views/shared/projects/_project.html.haml
View file @
1e8de503
...
...
@@ -52,7 +52,7 @@
=
render_project_pipeline_status
(
project
.
pipeline_status
)
-
if
forks
%span
.prepend-left-10
=
icon
(
'code-
fork'
)
=
sprite_icon
(
'
fork'
)
=
number_with_delimiter
(
project
.
forks_count
)
-
if
stars
%span
.prepend-left-10
...
...
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