Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
urbanmetamapping
platform
MapMyMaps-p1
Commits
1c4dc9cc
Commit
1c4dc9cc
authored
Mar 07, 2022
by
Klaus Stein
Browse files
Show ImageMap title/usage/description on map page
parent
5422c0dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/frontend/stylesheets/_map.scss
View file @
1c4dc9cc
...
...
@@ -96,6 +96,11 @@ main.show.map {
background
:
$link-color
;
}
}
details
{
margin-top
:
1ex
;
border-top
:
1px
solid
grey
;
padding-top
:
2px
;
}
}
}
}
...
...
app/views/maps/show.html.erb
View file @
1c4dc9cc
...
...
@@ -41,6 +41,9 @@
<%=
im
.
sizeinfo_s
%>
<br
/>
<%=
link_to
'↓ download'
,
rails_blob_path
(
im
.
image
),
download:
im
.
name
%>
<%=
link_to
'edit'
,
im
%>
<details>
<summary>
<%=
im
.
title
||
'–––'
%>
,
<%=
im
.
usage
%>
</summary>
<%=
im
.
description
%>
</figcaption>
</figure>
<%
end
%>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment