Commit a843ee7ece776810131a0bc8241d94b439506b93
1 parent
8e900113
Exists in
spb-stable
and in
3 other branches
Fix votes block. twbs3 progress bars
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
7 changed files
with
15 additions
and
9 deletions
Show diff stats
app/assets/stylesheets/sections/votes.scss
app/views/projects/issues/show.html.haml
app/views/projects/merge_requests/show/_mr_title.html.haml
... | ... | @@ -34,8 +34,8 @@ |
34 | 34 | %i.icon-edit |
35 | 35 | Edit |
36 | 36 | |
37 | -.pull-right | |
38 | - .col-md-3#votes= render 'votes/votes_block', votable: @merge_request | |
37 | +.votes-holder | |
38 | + #votes= render 'votes/votes_block', votable: @merge_request | |
39 | 39 | |
40 | 40 | .back-link |
41 | 41 | = link_to project_merge_requests_path(@project) do | ... | ... |
app/views/projects/milestones/_milestone.html.haml
app/views/projects/milestones/show.html.haml
... | ... | @@ -40,7 +40,7 @@ |
40 | 40 | #{@milestone.open_items_count} open |
41 | 41 | %span.pull-right= @milestone.expires_at |
42 | 42 | .progress.progress-info |
43 | - .bar{style: "width: #{@milestone.percent_complete}%;"} | |
43 | + .progress-bar{style: "width: #{@milestone.percent_complete}%;"} | |
44 | 44 | |
45 | 45 | |
46 | 46 | - if @milestone.description.present? | ... | ... |
app/views/projects/wikis/edit.html.haml
app/views/votes/_votes_block.html.haml
1 | 1 | .votes.votes-block |
2 | 2 | .progress |
3 | - .bar.bar-success{style: "width: #{votable.upvotes_in_percent}%;"} | |
4 | - .bar.bar-danger{style: "width: #{votable.downvotes_in_percent}%;"} | |
3 | + .progress-bar.progress-bar-success{style: "width: #{votable.upvotes_in_percent}%;"} | |
4 | + .progress-bar.progress-bar-danger{style: "width: #{votable.downvotes_in_percent}%;"} | |
5 | 5 | .upvotes= "#{votable.upvotes} up" |
6 | 6 | .downvotes= "#{votable.downvotes} down" | ... | ... |