Less busy gardens page #1123
| @@ -1,36 +1,21 @@ | ||
| .panel.panel-success | ||
| .panel-heading | ||
| %h3.panel-title | ||
| - = link_to "#{garden.owner.login_name}'s garden", garden | ||
| + = link_to garden.name, garden |
I prefer this; with maybe a fallback for garden name = blank (or we add model validations to require it if not already there)
| - %dt Location : | ||
| + %dl | ||
| + - if garden.location.present? | ||
| + %dt Location: |
I do prefer "Foo:" to "Foo :" very much, we should keep this - or even drop the ":" and rely on CSS to convey visual seperation
| -#gardens_panel_body | ||
| - height: 20em | ||
| +.garden-plantings | ||
| + list-style-type: none |
|
The only attribute really removed is the garden.description. Everything else is now only on the page once, or has the "not specified" placeholders gone. |
|
I want to send another PR after this, where you can default to not seeing the inactive gardens. I've got gardens from a house i live in years ago and I don't think they should be all over the UI unless i am looking for inactive gardens. |
|
From what I understand, the main reason for the placeholder text is to try to ensure all of the cards are the same height - it can be really noticable on http://www.growstuff.org/gardens if things are a bit skewiff. How would you feel if we did the CSS cleanup changes from this PR as a first step - I think they have value - and we see what the consensus is on the rest? I reckon the inactive gardens hidden by default is also a good one to do; as it'll encourage pages like http://www.growstuff.org/gardens to show only the most interesting stuff (particularly if we can hide 'draft' gardens or gardens with no attributes as well) |
|
Can't we set a height on them, then?
…
|



I'm expecting this to be contentious.. but...
the gardens#index page is really busy. It has lots of the attributes of a garden including all the placeholder text like "no description provided." and " not specified".
There were 3 links to every garden, the header, the name, and the "show more plantings".
I pruned lots of it - as i want it to be just an index, used to find a garden, not show it all.