Commit edf41005 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add project labels support

parent b6203ff81760
......@@ -28,12 +28,14 @@ class Project < ActiveRecord::Base
include Gitlab::ShellAdapter
extend Enumerize
attr_accessible :name, :path, :description, :default_branch, :issues_tracker,
attr_accessible :name, :path, :description, :default_branch, :issues_tracker, :label_list,
:issues_enabled, :wall_enabled, :merge_requests_enabled, :snippets_enabled, :issues_tracker_id,
:wiki_enabled, :public, :import_url, :last_activity_at, as: [:default, :admin]
attr_accessible :namespace_id, :creator_id, as: :admin
acts_as_taggable_on :labels
attr_accessor :import_url
# Relations
......@@ -49,6 +49,10 @@
- if project.description.present?
%span.light= project.description
- project.labels.each do |label|
......@@ -57,6 +57,15 @@
It will also be listed on the #{link_to "public access directory", public_root_path}.
= f.label :label_list, "Labels", class: 'control-label'
= f.text_field :label_list, maxlength: 2000, class: "xxlarge"
%p.hint Separate with comma.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment