Commit ef646928e4f89586d7057c91aee2678c3f89f363

Authored by Dmitriy Zaporozhets
1 parent 87f555e1

better presenting for group description

app/assets/stylesheets/gitlab_bootstrap/common.scss
@@ -30,6 +30,8 @@ @@ -30,6 +30,8 @@
30 border-color: #DDD; 30 border-color: #DDD;
31 } 31 }
32 32
  33 +.well { padding: 15px; }
  34 +
33 /** HELPERS **/ 35 /** HELPERS **/
34 .nothing_here_message { 36 .nothing_here_message {
35 text-align: center; 37 text-align: center;
app/views/groups/new.html.haml
@@ -16,10 +16,9 @@ @@ -16,10 +16,9 @@
16 = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4 16 = f.text_area :description, maxlength: 250, class: "xxlarge js-gfm-input", rows: 4
17 17
18 .form-actions 18 .form-actions
19 - = f.submit 'Create group', class: "btn btn-primary" 19 + = f.submit 'Create group', class: "btn btn-create"
20 20
21 21
22 - %hr  
23 .padded 22 .padded
24 %ul 23 %ul
25 %li Group is kind of directory for several projects 24 %li Group is kind of directory for several projects
app/views/groups/show.html.haml
1 -- if @group.description.present?  
2 - .description  
3 - = @group.description  
4 - %hr  
5 -  
6 .projects 1 .projects
7 .activities.span8 2 .activities.span8
8 = render "events/event_last_push", event: @last_push 3 = render "events/event_last_push", event: @last_push
@@ -17,6 +12,9 @@ @@ -17,6 +12,9 @@
17 %p.nothing_here_message Project activity will be displayed here 12 %p.nothing_here_message Project activity will be displayed here
18 .loading.hide 13 .loading.hide
19 .side.span4 14 .side.span4
  15 + - if @group.description.present?
  16 + .description.well.light
  17 + = @group.description
20 = render "projects", projects: @projects 18 = render "projects", projects: @projects
21 %div 19 %div
22 %span.rss-icon 20 %span.rss-icon
app/views/teams/new.html.haml
@@ -18,7 +18,6 @@ @@ -18,7 +18,6 @@
18 .form-actions 18 .form-actions
19 = f.submit 'Create team', class: "btn btn-create" 19 = f.submit 'Create team', class: "btn btn-create"
20 20
21 - %hr  
22 .padded 21 .padded
23 %ul 22 %ul
24 %li All created teams are public (users can view who enter into team and which project are assigned for this team) 23 %li All created teams are public (users can view who enter into team and which project are assigned for this team)
app/views/teams/show.html.haml
1 -- if @team.description.present?  
2 - .description  
3 - = @team.description  
4 - %hr  
5 -  
6 .projects 1 .projects
7 .activities.span8 2 .activities.span8
8 = link_to dashboard_path, class: 'btn btn-tiny' do 3 = link_to dashboard_path, class: 'btn btn-tiny' do
@@ -16,6 +11,9 @@ @@ -16,6 +11,9 @@
16 %p.nothing_here_message Projects activity will be displayed here 11 %p.nothing_here_message Projects activity will be displayed here
17 .loading.hide 12 .loading.hide
18 .side.span4 13 .side.span4
  14 + - if @team.description.present?
  15 + .description.well.light
  16 + = @team.description
19 = render "projects", projects: @projects 17 = render "projects", projects: @projects
20 %div 18 %div
21 %span.rss-icon 19 %span.rss-icon