summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-13 09:52:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-07-13 09:52:47 +0300
commit3805797cae702e46a83b5da9b6411f1899c3d1a0 (patch)
treec9bb7eac8362227ccf4586b261cd2ab4872863a2 /app/views/projects/snippets
parent399d0bdde79774b4cc7e6a9dd480a8b7cb690bed (diff)
downloadgitlab-ce-3805797cae702e46a83b5da9b6411f1899c3d1a0.tar.gz
scss: rename file_content to file-content etc
Diffstat (limited to 'app/views/projects/snippets')
-rw-r--r--app/views/projects/snippets/_blob.html.haml6
-rw-r--r--app/views/projects/snippets/_form.html.haml6
2 files changed, 6 insertions, 6 deletions
diff --git a/app/views/projects/snippets/_blob.html.haml b/app/views/projects/snippets/_blob.html.haml
index e0d1669acbe..f14a2bd4ec0 100644
--- a/app/views/projects/snippets/_blob.html.haml
+++ b/app/views/projects/snippets/_blob.html.haml
@@ -1,5 +1,5 @@
-.file_holder
- .file_title
+.file-holder
+ .file-title
%i.icon-file
%strong= @snippet.file_name
%span.options
@@ -7,7 +7,7 @@
- if can?(current_user, :admin_project_snippet, @project) || @snippet.author == current_user
= link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn btn-tiny", title: 'Edit Snippet'
= link_to "raw", raw_project_snippet_path(@project, @snippet), class: "btn btn-tiny", target: "_blank"
- .file_content.code
+ .file-content.code
- unless @snippet.content.empty?
%div{class: user_color_scheme_class}
= raw @snippet.colorize(formatter: :gitlab)
diff --git a/app/views/projects/snippets/_form.html.haml b/app/views/projects/snippets/_form.html.haml
index a4f30734789..a8aa5460f2e 100644
--- a/app/views/projects/snippets/_form.html.haml
+++ b/app/views/projects/snippets/_form.html.haml
@@ -19,10 +19,10 @@
.file-editor
= f.label :file_name, "File"
.input
- .file_holder.snippet
- .file_title
+ .file-holder.snippet
+ .file-title
= f.text_field :file_name, placeholder: "example.rb", class: 'snippet-file-name', required: true
- .file_content.code
+ .file-content.code
%pre#editor= @snippet.content
= f.hidden_field :content, class: 'snippet-file-content'