aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhellekin <hellekin@cepheide.org>2021-02-11 23:05:27 +0100
committerhellekin <hellekin@cepheide.org>2021-02-11 23:05:27 +0100
commitcbbf21de5c26bc8435024ac3f0bd62e69c84341b (patch)
treecc7f000adf0802e59676b5db19011ff9f14736f9
parente5619547d5544a043dfec173f17020b09f882a98 (diff)
downloadincommon-map-0.1.8.tar.gz
[FEATURE] Link to editv0.1.8
-rw-r--r--app/javascript/scss/_resources.scss29
-rw-r--r--app/views/resources/_popup.html.erb6
2 files changed, 35 insertions, 0 deletions
diff --git a/app/javascript/scss/_resources.scss b/app/javascript/scss/_resources.scss
index eb7411b..e9b3d0b 100644
--- a/app/javascript/scss/_resources.scss
+++ b/app/javascript/scss/_resources.scss
@@ -7,3 +7,32 @@
// Place all the styles related to the Resources controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: https://sass-lang.com/
+
+article.resource {
+ nav {
+ margin-top: 1rem;
+
+ ul {
+ display: flex;
+ border-top: 2px solid;
+ flex-flow: row-reverse nowrap;
+ justify-content: space-evenly;
+ list-style: none;
+ padding: 0;
+
+ li {
+ padding: 0;
+ text-align: center;
+ flex: 1;
+
+ &:first-child {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+
+ a {
+ }
+ }
+ }
+ }
+}
diff --git a/app/views/resources/_popup.html.erb b/app/views/resources/_popup.html.erb
index 0841264..0e8b1da 100644
--- a/app/views/resources/_popup.html.erb
+++ b/app/views/resources/_popup.html.erb
@@ -7,4 +7,10 @@
<%= m resource.description %>
</section>
<% end %>
+ <nav>
+ <ul>
+ <li><%= link_to(tag.nobr(resource.uuid), resource_path(resource), title: 'voir la fiche correspondante') %></li>
+ <li><%= link_to('modifier', edit_resource_url(resource), title: 'nodifier cette ressource') %></li>
+ </ul>
+ </nav>
</article>