Commit 88d42c2e1c5ef3d312efbba658d852e638bf8f31

Authored by Dmitriy Zaporozhets
1 parent e84df44e

Replace projects_box with ui-box. Fixed team spinach test

app/assets/stylesheets/sections/projects.scss
@@ -6,11 +6,8 @@ @@ -6,11 +6,8 @@
6 .side { 6 .side {
7 @extend .pull-right; 7 @extend .pull-right;
8 8
9 - .projects_box, .ui-box { 9 + .ui-box {
10 margin: 3px; 10 margin: 3px;
11 - }  
12 -  
13 - .projects_box {  
14 > .title { 11 > .title {
15 padding: 2px 15px; 12 padding: 2px 15px;
16 } 13 }
app/views/dashboard/_groups.html.haml
@@ -12,10 +12,13 @@ @@ -12,10 +12,13 @@
12 - groups.each do |group| 12 - groups.each do |group|
13 %li 13 %li
14 = link_to group_path(id: group.path), class: dom_class(group) do 14 = link_to group_path(id: group.path), class: dom_class(group) do
15 - %strong.well-title= truncate(group.name, length: 35)  
16 - %span.pull-right.light  
17 - - if group.owner == current_user  
18 - %i.icon-wrench 15 + %strong.well-title
  16 + = truncate(group.name, length: 35)
  17 + %span.arrow
  18 + →
  19 + %span.last_activity
  20 + %strong Owner:
  21 + %span= group.owner_name
19 - if groups.blank? 22 - if groups.blank?
20 %li 23 %li
21 %h3.nothing_here_message You have no groups yet. 24 %h3.nothing_here_message You have no groups yet.
app/views/dashboard/_projects.html.haml
1 -.projects_box 1 +.ui-box
2 %h5.title 2 %h5.title
3 Projects 3 Projects
4 %small 4 %small
app/views/groups/_projects.html.haml
1 -.projects_box 1 +.ui-box
2 %h5.title 2 %h5.title
3 Projects 3 Projects
4 %small 4 %small
app/views/teams/_projects.html.haml
1 -.projects_box 1 +.ui-box
2 %h5.title 2 %h5.title
3 Projects 3 Projects
4 %small 4 %small
app/views/teams/edit.html.haml
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 .span9 11 .span9
12 .tab-content 12 .tab-content
13 .tab-pane.active#tab-projects 13 .tab-pane.active#tab-projects
14 - .ui-box 14 + .ui-box.projects-table
15 %h5.title Projects 15 %h5.title Projects
16 %ul.well-list 16 %ul.well-list
17 - @projects.each do |project| 17 - @projects.each do |project|
features/steps/userteams/userteams.rb
@@ -206,12 +206,8 @@ class Userteams < Spinach::FeatureSteps @@ -206,12 +206,8 @@ class Userteams < Spinach::FeatureSteps
206 visit team_path(team) 206 visit team_path(team)
207 end 207 end
208 208
209 - When 'I click on link "Projects"' do  
210 - click_link "Projects"  
211 - end  
212 -  
213 - And 'I click link "Assign project to Team"' do  
214 - click_link "Assign project to Team" 209 + When 'I click on link "Assign Project"' do
  210 + click_link "Assign Project"
215 end 211 end
216 212
217 Then 'I should see form with my own project in avaliable projects list' do 213 Then 'I should see form with my own project in avaliable projects list' do
features/teams/team.feature
@@ -59,8 +59,7 @@ Feature: UserTeams @@ -59,8 +59,7 @@ Feature: UserTeams
59 Given I have team with projects and members 59 Given I have team with projects and members
60 And I have my own project without teams 60 And I have my own project without teams
61 And I visit my team page 61 And I visit my team page
62 - When I click on link "Projects"  
63 - And I click link "Assign project to Team" 62 + When I click on link "Assign Project"
64 Then I should see form with my own project in avaliable projects list 63 Then I should see form with my own project in avaliable projects list
65 When I submit form with selected project and max access 64 When I submit form with selected project and max access
66 Then I should see my own project in team projects list 65 Then I should see my own project in team projects list