diff options
| author | jpl | 2017-02-06 15:19:03 +0100 |
|---|---|---|
| committer | jpl | 2017-02-06 15:19:03 +0100 |
| commit | aee4fc870f4f7b974eb40a132573aa73c18042df (patch) | |
| tree | 2ef66861626986513150b91e950439c2e581caf0 /app | |
| parent | 13890fc916aff0e0b85eee7fae9ff383a3faffde (diff) | |
| download | chouette-core-aee4fc870f4f7b974eb40a132573aa73c18042df.tar.bz2 | |
Refs #2535: updating table builder with column type 'name'
Diffstat (limited to 'app')
| -rw-r--r-- | app/assets/stylesheets/components/_tables.sass | 5 | ||||
| -rw-r--r-- | app/helpers/newapplication_helper.rb | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/app/assets/stylesheets/components/_tables.sass b/app/assets/stylesheets/components/_tables.sass index 60a42ef93..e97ee3d7a 100644 --- a/app/assets/stylesheets/components/_tables.sass +++ b/app/assets/stylesheets/components/_tables.sass @@ -47,3 +47,8 @@ border-bottom: 1px solid $grey padding: 4px 8px vertical-align: middle + + > a + text-decoration: none + font-weight: 700 + color: inherit diff --git a/app/helpers/newapplication_helper.rb b/app/helpers/newapplication_helper.rb index eee833562..010ff71f6 100644 --- a/app/helpers/newapplication_helper.rb +++ b/app/helpers/newapplication_helper.rb @@ -27,7 +27,11 @@ module NewapplicationHelper else item.try(attribute) end - bcont << content_tag(:td, value) + if attribute == "name" + bcont << content_tag(:td, link_to(value, item), title: 'Voir') + else + bcont << content_tag(:td, value) + end end bcont << content_tag(:td, links_builder(item, actions), class: 'actions') if actions.any? |
