Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/_snippet.html.haml23
-rw-r--r--app/views/snippets/_snippets.html.haml7
-rw-r--r--app/views/snippets/current_user_index.html.haml39
-rw-r--r--app/views/snippets/edit.html.haml4
-rw-r--r--app/views/snippets/index.html.haml17
-rw-r--r--app/views/snippets/new.html.haml4
-rw-r--r--app/views/snippets/show.html.haml43
-rw-r--r--app/views/snippets/user_index.html.haml13
8 files changed, 0 insertions, 150 deletions
diff --git a/app/views/snippets/_snippet.html.haml b/app/views/snippets/_snippet.html.haml
deleted file mode 100644
index 5bb28664349..00000000000
--- a/app/views/snippets/_snippet.html.haml
+++ /dev/null
@@ -1,23 +0,0 @@
-%li
- %h4.snippet-title
- = link_to reliable_snippet_path(snippet) do
- = truncate(snippet.title, length: 60)
- - if snippet.private?
- %span.label.label-gray
- %i.fa.fa-lock
- private
- %span.cgray.monospace.tiny.pull-right
- = snippet.file_name
-
- %small.pull-right.cgray
- - if snippet.project_id?
- = link_to snippet.project.name_with_namespace, namespace_project_path(snippet.project.namespace, snippet.project)
-
- .snippet-info
- = "##{snippet.id}"
- %span
- by
- = link_to user_snippets_path(snippet.author) do
- = image_tag avatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
- = snippet.author_name
- %span.light #{time_ago_with_tooltip(snippet.created_at)}
diff --git a/app/views/snippets/_snippets.html.haml b/app/views/snippets/_snippets.html.haml
deleted file mode 100644
index 40df42b6cf5..00000000000
--- a/app/views/snippets/_snippets.html.haml
+++ /dev/null
@@ -1,7 +0,0 @@
-%ul.bordered-list
- = render partial: 'snippet', collection: @snippets
- - if @snippets.empty?
- %li
- .nothing-here-block Nothing here.
-
-= paginate @snippets, theme: 'gitlab'
diff --git a/app/views/snippets/current_user_index.html.haml b/app/views/snippets/current_user_index.html.haml
deleted file mode 100644
index 0df5ade500d..00000000000
--- a/app/views/snippets/current_user_index.html.haml
+++ /dev/null
@@ -1,39 +0,0 @@
-%h3.page-title
- Your Snippets
- .pull-right
- = link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
- Add new snippet
- = link_to snippets_path, class: "btn btn-grouped" do
- Discover snippets
-
-%p.light
- Share code pastes with others out of git repository
-%hr
-
-.row
- .col-md-3
- %ul.nav.nav-pills.nav-stacked
- = nav_tab :scope, nil do
- = link_to user_snippets_path(@user) do
- All
- %span.pull-right
- = @user.snippets.count
- = nav_tab :scope, 'are_private' do
- = link_to user_snippets_path(@user, scope: 'are_private') do
- Private
- %span.pull-right
- = @user.snippets.are_private.count
- = nav_tab :scope, 'are_internal' do
- = link_to user_snippets_path(@user, scope: 'are_internal') do
- Internal
- %span.pull-right
- = @user.snippets.are_internal.count
- = nav_tab :scope, 'are_public' do
- = link_to user_snippets_path(@user, scope: 'are_public') do
- Public
- %span.pull-right
- = @user.snippets.are_public.count
-
- .col-md-9.my-snippets
- = render 'snippets'
-
diff --git a/app/views/snippets/edit.html.haml b/app/views/snippets/edit.html.haml
deleted file mode 100644
index 7042d07d5e8..00000000000
--- a/app/views/snippets/edit.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-%h3.page-title
- Edit snippet
-%hr
-= render "shared/snippets/form", url: snippet_path(@snippet)
diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml
deleted file mode 100644
index 5cd8ae26cf9..00000000000
--- a/app/views/snippets/index.html.haml
+++ /dev/null
@@ -1,17 +0,0 @@
-%h3.page-title
- Public snippets
-
- .pull-right
-
- - if current_user
- = link_to new_snippet_path, class: "btn btn-new btn-grouped", title: "New Snippet" do
- Add new snippet
- = link_to user_snippets_path(current_user), class: "btn btn-grouped" do
- Your snippets
-
-%p.light
- Public snippets created by you and other users are listed here
-
-%hr
-= render 'snippets'
-
diff --git a/app/views/snippets/new.html.haml b/app/views/snippets/new.html.haml
deleted file mode 100644
index 694d7058317..00000000000
--- a/app/views/snippets/new.html.haml
+++ /dev/null
@@ -1,4 +0,0 @@
-%h3.page-title
- New snippet
-%hr
-= render "shared/snippets/form", url: snippets_path(@snippet)
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
deleted file mode 100644
index 5204fb9a907..00000000000
--- a/app/views/snippets/show.html.haml
+++ /dev/null
@@ -1,43 +0,0 @@
-%h3.page-title
- = @snippet.title
-
- - if @snippet.private?
- %span.label.label-success
- %i.fa.fa-lock
- private
-
- .pull-right
- = link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
- Add new snippet
-%hr
-
-.append-bottom-20
- .pull-right
- = "##{@snippet.id}"
- %span.light
- by
- = link_to user_snippets_path(@snippet.author) do
- = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16", alt: ''
- = @snippet.author_name
-
- .back-link
- - if @snippet.author == current_user
- = link_to user_snippets_path(current_user) do
- ← your snippets
- - else
- = link_to snippets_path do
- ← discover snippets
-
-.file-holder
- .file-title
- %i.fa.fa-file
- %strong
- = @snippet.file_name
- .file-actions
- .btn-group
- - if can?(current_user, :modify_personal_snippet, @snippet)
- = link_to "edit", edit_snippet_path(@snippet), class: "btn btn-sm", title: 'Edit Snippet'
- = link_to "raw", raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
- - if can?(current_user, :admin_personal_snippet, @snippet)
- = link_to "remove", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-sm btn-remove", title: 'Delete Snippet'
- = render 'shared/snippets/blob'
diff --git a/app/views/snippets/user_index.html.haml b/app/views/snippets/user_index.html.haml
deleted file mode 100644
index df524cd18b0..00000000000
--- a/app/views/snippets/user_index.html.haml
+++ /dev/null
@@ -1,13 +0,0 @@
-%h3.page-title
- = image_tag avatar_icon(@user.email), class: "avatar s24"
- = @user.name
- %span
- \/
- Snippets
- - if current_user
- = link_to new_snippet_path, class: "btn btn-sm add_new pull-right", title: "New Snippet" do
- Add new snippet
-
-%hr
-
-= render 'snippets'