mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Remove unused view and update redirect when destroy snippet
This commit is contained in:
@@ -43,7 +43,7 @@ class SnippetsController < ApplicationController
|
||||
|
||||
@snippet.destroy
|
||||
|
||||
redirect_to snippets_path
|
||||
redirect_to dashboard_snippets_path
|
||||
end
|
||||
|
||||
def raw
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
- page_title "By #{@user.name}", "Snippets"
|
||||
|
||||
%ol.breadcrumb
|
||||
%li
|
||||
= link_to snippets_path do
|
||||
Snippets
|
||||
%li
|
||||
= @user.name
|
||||
.pull-right.hidden-xs
|
||||
= link_to user_path(@user) do
|
||||
#{@user.name} profile page
|
||||
|
||||
= render 'snippets'
|
||||
Reference in New Issue
Block a user