Commit a843ee7e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix votes block. twbs3 progress bars

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 8e900113
......@@ -36,3 +36,8 @@
display: inline-block;
margin: 0 8px;
}
.votes-holder {
float: right;
width: 250px;
}
......@@ -24,8 +24,8 @@
%i.icon-edit
Edit
.pull-right
.col-md-3#votes= render 'votes/votes_block', votable: @issue
.votes-holder
#votes= render 'votes/votes_block', votable: @issue
.back-link
= link_to project_issues_path(@project) do
......
......@@ -34,8 +34,8 @@
%i.icon-edit
Edit
.pull-right
.col-md-3#votes= render 'votes/votes_block', votable: @merge_request
.votes-holder
#votes= render 'votes/votes_block', votable: @merge_request
.back-link
= link_to project_merge_requests_path(@project) do
......
......@@ -24,4 +24,4 @@
&nbsp;
%span.light #{milestone.percent_complete}% complete
.progress.progress-info
.bar{style: "width: #{milestone.percent_complete}%;"}
.progress-bar{style: "width: #{milestone.percent_complete}%;"}
......@@ -40,7 +40,7 @@
#{@milestone.open_items_count} open
%span.pull-right= @milestone.expires_at
.progress.progress-info
.bar{style: "width: #{@milestone.percent_complete}%;"}
.progress-bar{style: "width: #{@milestone.percent_complete}%;"}
- if @milestone.description.present?
......
= render 'nav'
.pull-right
= render 'main_links'
%h3.page-title
Editing -
%span.light #{@wiki.title.titleize}
= render 'main_links'
%hr
= render 'form'
......
.votes.votes-block
.progress
.bar.bar-success{style: "width: #{votable.upvotes_in_percent}%;"}
.bar.bar-danger{style: "width: #{votable.downvotes_in_percent}%;"}
.progress-bar.progress-bar-success{style: "width: #{votable.upvotes_in_percent}%;"}
.progress-bar.progress-bar-danger{style: "width: #{votable.downvotes_in_percent}%;"}
.upvotes= "#{votable.upvotes} up"
.downvotes= "#{votable.downvotes} down"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment