Browse Source
to accommodate design changes, decouple box with counter and blue link boxes since various boxes show or not or in a different order depending on whether the org logs sales and whether we are in the crossover period I have also made grid and row partials to improve readability on the index page.pull/2408/head
Arthur Campbell
9 months ago
5 changed files with 30 additions and 22 deletions
@ -0,0 +1,3 @@
|
||||
<div class="app-data-box__lower"> |
||||
<%= govuk_link_to text, path, class: "govuk-link--inverse" %> |
||||
</div> |
@ -1,9 +1,6 @@
|
||||
<div class="app-data-box__upper"> |
||||
<div class="app-data-box__count"> |
||||
<%= govuk_link_to data_count(@current_user, type), data_path(@current_user, type), class: "govuk-link--no-visited-state govuk-link--no-underline" %> |
||||
<%= govuk_link_to data_box[:count], data_box[:path], class: "govuk-link--no-visited-state govuk-link--no-underline" %> |
||||
</div> |
||||
<%= govuk_link_to data_subheading(@current_user, type), data_path(@current_user, type), class: "govuk-link--no-visited-state" %> |
||||
</div> |
||||
<div class="app-data-box__lower"> |
||||
<%= govuk_link_to view_all_text(type), view_all_path(type), class: "govuk-link--inverse" %> |
||||
<%= govuk_link_to data_box[:text], data_box[:path], class: "govuk-link--no-visited-state" %> |
||||
</div> |
||||
|
@ -0,0 +1,8 @@
|
||||
<div class="app-data-box-one-half"> |
||||
<%= render partial: "home/data_box", object: left_data_box %> |
||||
</div> |
||||
<% if right_data_box %> |
||||
<div class="app-data-box-one-half"> |
||||
<%= render partial: "home/data_box", object: right_data_box %> |
||||
</div> |
||||
<% end %> |
@ -0,0 +1,8 @@
|
||||
<div class="app-data-box-one-half"> |
||||
<%= render partial: "home/data_box", object: top_left_data_box %> |
||||
<%= render partial: "home/data_box", object: bottom_left_data_box %> |
||||
</div> |
||||
<div class="app-data-box-one-half"> |
||||
<%= render partial: "home/data_box", object: top_right_data_box %> |
||||
<%= render partial: "home/data_box", object: bottom_right_data_box %> |
||||
</div> |
Loading…
Reference in new issue