Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
edf41005
Commit
edf41005
authored
Apr 16, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add project labels support
parent
880cb8aa
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
app/models/project.rb
app/models/project.rb
+3
-1
app/views/dashboard/projects.html.haml
app/views/dashboard/projects.html.haml
+4
-0
app/views/projects/_form.html.haml
app/views/projects/_form.html.haml
+9
-0
No files found.
app/models/project.rb
View file @
edf41005
...
@@ -28,12 +28,14 @@ class Project < ActiveRecord::Base
...
@@ -28,12 +28,14 @@ class Project < ActiveRecord::Base
include
Gitlab
::
ShellAdapter
include
Gitlab
::
ShellAdapter
extend
Enumerize
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
,
:issues_enabled
,
:wall_enabled
,
:merge_requests_enabled
,
:snippets_enabled
,
:issues_tracker_id
,
:wiki_enabled
,
:public
,
:import_url
,
:last_activity_at
,
as:
[
:default
,
:admin
]
:wiki_enabled
,
:public
,
:import_url
,
:last_activity_at
,
as:
[
:default
,
:admin
]
attr_accessible
:namespace_id
,
:creator_id
,
as: :admin
attr_accessible
:namespace_id
,
:creator_id
,
as: :admin
acts_as_taggable_on
:labels
attr_accessor
:import_url
attr_accessor
:import_url
# Relations
# Relations
...
...
app/views/dashboard/projects.html.haml
View file @
edf41005
...
@@ -49,6 +49,10 @@
...
@@ -49,6 +49,10 @@
.left
.left
-
if
project
.
description
.
present?
-
if
project
.
description
.
present?
%span
.light
=
project
.
description
%span
.light
=
project
.
description
-
project
.
labels
.
each
do
|
label
|
%span
.label.label-info
%i
.icon-tag
=
label
.
name
.pull-right.light
.pull-right.light
%small
.light
%small
.light
...
...
app/views/projects/_form.html.haml
View file @
edf41005
...
@@ -57,6 +57,15 @@
...
@@ -57,6 +57,15 @@
authentication.
authentication.
It will also be listed on the
#{
link_to
"public access directory"
,
public_root_path
}
.
It will also be listed on the
#{
link_to
"public access directory"
,
public_root_path
}
.
%fieldset
.features
%legend
Labels:
.control-group
=
f
.
label
:label_list
,
"Labels"
,
class:
'control-label'
.controls
=
f
.
text_field
:label_list
,
maxlength:
2000
,
class:
"xxlarge"
%p
.hint
Separate with comma.
%fieldset
.features
%fieldset
.features
%legend
%legend
Features:
Features:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment