Issues, MR, Wall can be enabled/disabled per project
This commit is contained in:
parent
da3e34c0fd
commit
6c416aaac8
9 changed files with 116 additions and 26 deletions
|
@ -23,10 +23,24 @@
|
|||
= f.label :default_branch, "Default Branch"
|
||||
.input= f.select(:default_branch, @project.heads.map(&:name), {}, :style => "width:210px;")
|
||||
|
||||
.well
|
||||
%h5 Features
|
||||
|
||||
.clearfix
|
||||
= f.label :issues_enabled, "Issues"
|
||||
.input= f.check_box :issues_enabled
|
||||
|
||||
.clearfix
|
||||
= f.label :merge_requests_enabled, "Merge Requests"
|
||||
.input= f.check_box :merge_requests_enabled
|
||||
|
||||
.clearfix
|
||||
= f.label :wall_enabled, "Wall"
|
||||
.input= f.check_box :wall_enabled
|
||||
|
||||
.clearfix
|
||||
= f.label :description
|
||||
.input= f.text_area :description, :placeholder => "project description", :style => "height:50px"
|
||||
.input= f.text_area :description, :placeholder => "project description", :class => "xlarge", :rows => 4
|
||||
|
||||
%br
|
||||
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
= render "project_head"
|
||||
%h3= @project.name
|
||||
%br
|
||||
|
||||
|
||||
.entry
|
||||
%h3= @project.name
|
||||
%br
|
||||
|
||||
%pre
|
||||
= "git clone #{@project.url_to_repo}"
|
||||
|
||||
|
||||
%pre
|
||||
= "git clone #{@project.url_to_repo}"
|
||||
|
||||
|
||||
|
||||
%h4 Details:
|
||||
|
||||
%table
|
||||
%tr
|
||||
|
@ -54,6 +59,38 @@
|
|||
%tr
|
||||
%td{:colspan => 2}= simple_format @project.description
|
||||
|
||||
|
||||
%h4 Features:
|
||||
|
||||
%table
|
||||
%tr
|
||||
%td Issues
|
||||
%td
|
||||
- if @project.issues_enabled
|
||||
.alert-message.success
|
||||
Enabled
|
||||
- else
|
||||
.alert-message.error
|
||||
Disabled
|
||||
|
||||
%tr
|
||||
%td Merge Requests
|
||||
%td
|
||||
- if @project.merge_requests_enabled
|
||||
.alert-message.success
|
||||
Enabled
|
||||
- else
|
||||
.alert-message.error
|
||||
Disabled
|
||||
%tr
|
||||
%td Wall
|
||||
%td
|
||||
- if @project.wall_enabled
|
||||
.alert-message.success
|
||||
Enabled
|
||||
- else
|
||||
.alert-message.error
|
||||
Disabled
|
||||
.actions
|
||||
= link_to "Edit", edit_project_path(@project), :class => "btn"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue