2018-09-23 15:44:14 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-09-08 09:49:20 -04:00
|
|
|
class Explore::SnippetsController < Explore::ApplicationController
|
2019-09-02 07:12:20 -04:00
|
|
|
include Gitlab::NoteableMetadata
|
|
|
|
|
2015-09-08 09:49:20 -04:00
|
|
|
def index
|
2019-10-18 14:06:21 -04:00
|
|
|
@snippets = SnippetsFinder.new(current_user, explore: true)
|
2019-09-02 07:12:20 -04:00
|
|
|
.execute
|
|
|
|
.page(params[:page])
|
2020-02-25 16:09:23 -05:00
|
|
|
.without_count
|
2019-09-02 07:12:20 -04:00
|
|
|
.inc_author
|
|
|
|
|
|
|
|
@noteable_meta_data = noteable_meta_data(@snippets, 'Snippet')
|
2015-09-08 09:49:20 -04:00
|
|
|
end
|
|
|
|
end
|