diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 8e59368..502aca5 100644 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -28,3 +28,8 @@ .table:last-child { margin-bottom: 0px; } + +/* Allow non- elements to look exactly like elements */ +.hyperlink { + @extend a; +} diff --git a/app/assets/stylesheets/top4.css.scss b/app/assets/stylesheets/top4.css.scss index 5be90df..84cef4b 100644 --- a/app/assets/stylesheets/top4.css.scss +++ b/app/assets/stylesheets/top4.css.scss @@ -2,15 +2,20 @@ // They will automatically be included in application.css. // You can use Sass (SCSS) here: http://sass-lang.com/ -.top4.toprow { - height: 300px; +.toprow { + // At 992 px the ordinal bar graph drops down + @media (min-width: 992px) { + height: 300px; + } + + .top4, .panel, #top-coders, #top-repos { + height: 100%; + } } div.top4 { margin: auto; - .panel { - height: 100%; - } + #top-coders { td { @@ -21,7 +26,7 @@ div.top4 { font-size: 20pt; text-align: right; width: 45px; - height: 45px; + height: 20%; } .avatar { width: 45px; @@ -39,7 +44,7 @@ div.top4 { tr:first-child { width: 90px; - height: 90px; + height: 40%; .name { font-size: 15pt; } diff --git a/app/views/bounties/index.html.erb b/app/views/bounties/index.html.erb index 7b9e53c..ca32f68 100644 --- a/app/views/bounties/index.html.erb +++ b/app/views/bounties/index.html.erb @@ -17,33 +17,37 @@ Repo Issue Total bounty - My bounty + <% if coder_signed_in? %> + My bounty + <% end %> <% @issues.each do |issue| %> - <% repo = issue.repository %> - - <%= link_to repo.name, repo %> - <%= link_to issue.title, issue.github_url %> - <%= issue.total_bounty_value %> - -
- <%= form_for find_bounty(issue, current_coder), - url: {action: 'update_or_create'}, - method: :post, - remote: true do |f| %> - <%= f.hidden_field :issue_id %> - <%= f.text_field :absolute_value, - autocomplete: 'off', class: 'form-control text-right'%> - - <%= f.submit(value: 'Put', data: {disable_with: 'Saving'}, - class: 'btn btn-default') %> - + <% repo = issue.repository %> + + <%= link_to repo.name, repo %> + <%= link_to issue.title, issue.github_url %> + <%= issue.total_bounty_value %> + <% if coder_signed_in? %> + +
+ <%= form_for find_bounty(issue, current_coder), + url: {action: 'update_or_create'}, + method: :post, + remote: true do |f| %> + <%= f.hidden_field :issue_id %> + <%= f.text_field :absolute_value, + autocomplete: 'off', class: 'form-control text-right'%> + + <%= f.submit(value: 'Put', data: {disable_with: 'Saving'}, + class: 'btn btn-default') %> + + <% end %> +
+ <% end %> -
- - + <% end %> diff --git a/app/views/top4/show.html.erb b/app/views/top4/show.html.erb index 5e741b7..443bedb 100644 --- a/app/views/top4/show.html.erb +++ b/app/views/top4/show.html.erb @@ -4,8 +4,7 @@ - -
+
@@ -78,8 +77,15 @@