debian-mirror-gitlab/lib/gitlab/sample_data_template.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
662 B
Ruby
Raw Normal View History

2021-01-03 14:25:43 +05:30
# frozen_string_literal: true
module Gitlab
class SampleDataTemplate < ProjectTemplate
class << self
def localized_templates_table
[
2021-03-11 19:13:27 +05:30
SampleDataTemplate.new('sample', 'Sample GitLab Project', _('An example project that shows off the best practices for setting up GitLab for your own organization, including sample issues, merge requests, and milestones'), 'https://gitlab.com/gitlab-org/sample-data-templates/sample-gitlab-project')
2021-01-03 14:25:43 +05:30
].freeze
end
def all
localized_templates_table
end
def archive_directory
Rails.root.join("vendor/sample_data_templates")
end
end
end
end