Commit 39018a74 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

code-fork replacements

parent 1e8de503
...@@ -2,13 +2,14 @@ ...@@ -2,13 +2,14 @@
import commitIconSvg from 'icons/_icon_commit.svg'; import commitIconSvg from 'icons/_icon_commit.svg';
import userAvatarLink from './user_avatar/user_avatar_link.vue'; import userAvatarLink from './user_avatar/user_avatar_link.vue';
import tooltip from '../directives/tooltip'; import tooltip from '../directives/tooltip';
import Icon from '../../vue_shared/components/icon.vue';
export default { export default {
props: { props: {
/** /**
* Indicates the existance of a tag. * Indicates the existance of a tag.
* Used to render the correct icon, if true will render `fa-tag` icon, * Used to render the correct icon, if true will render `fa-tag` icon,
* if false will render `fa-code-fork` icon. * if false will render a svg sprite fork icon
*/ */
tag: { tag: {
type: Boolean, type: Boolean,
...@@ -107,6 +108,7 @@ ...@@ -107,6 +108,7 @@
}, },
components: { components: {
userAvatarLink, userAvatarLink,
Icon,
}, },
created() { created() {
this.commitIconSvg = commitIconSvg; this.commitIconSvg = commitIconSvg;
...@@ -123,11 +125,10 @@ ...@@ -123,11 +125,10 @@
class="fa fa-tag" class="fa fa-tag"
aria-hidden="true"> aria-hidden="true">
</i> </i>
<i <icon
v-if="!tag" v-if="!tag"
class="fa fa-code-fork" name="fork">
aria-hidden="true"> </icon>
</i>
</div> </div>
<a <a
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.file-holder-bottom-radius.file-holder.file.append-bottom-default .file-holder-bottom-radius.file-holder.file.append-bottom-default
.js-file-title.file-title.clearfix{ data: { current_action: action } } .js-file-title.file-title.clearfix{ data: { current_action: action } }
.editor-ref .editor-ref
= sprite_icon('fork') = sprite_icon('fork', size: 12)
= ref = ref
%span.editor-file-name %span.editor-file-name
- if current_action?(:edit) || current_action?(:update) - if current_action?(:edit) || current_action?(:update)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment