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
baf74185
Commit
baf74185
authored
Nov 22, 2021
by
Klaus Stein
Browse files
Add download link for map images
parent
2e2966c0
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/frontend/stylesheets/_map.scss
View file @
baf74185
...
...
@@ -86,6 +86,16 @@ main.show.map {
}
figcaption
{
font-size
:
small
;
a
[
download
]
{
font-weight
:
bold
;
padding
:
1px
;
display
:
inline_block
;
&
:hover
,
&
:focus
{
color
:
$show-bg
;
background
:
$link-color
;
}
}
}
}
}
...
...
app/frontend/stylesheets/_maps.scss
View file @
baf74185
...
...
@@ -10,7 +10,7 @@
.place
,
.show.map
{
border
:
2px
solid
grey
;
padding
:
1rem
;
background
:
#fffae0
;
background
:
$show-bg
;
}
.wda-infos
,
.dfg-infos
{
...
...
app/frontend/stylesheets/_variables.scss
View file @
baf74185
...
...
@@ -6,3 +6,5 @@ $link-hover-color: adjust-hue($link-color, 60);
$link-bg-color
:
desaturate
(
lighten
(
#000066
,
60
)
,
80
);
$link-bg-hover-color
:
adjust-hue
(
$link-bg-color
,
60
);
$link-fg-color
:
$link-color
;
$show-bg
:
#fffae0
;
app/views/maps/show.html.erb
View file @
baf74185
...
...
@@ -36,8 +36,11 @@
<figure>
<%=
link_to
image_tag
(
im
.
image_preview
,
class:
'preview'
,
alt:
im
.
name
,
title:
im
.
id
),
rails_blob_path
(
im
.
image
),
target:
'_blank'
,
title:
im
.
name
%>
<figcaption>
<%=
im
.
sizeinfo_s
%>
</figcaption>
url_for
(
im
.
image_hd
),
target:
'_blank'
,
title:
im
.
name
%>
<figcaption>
<%=
im
.
sizeinfo_s
%>
<%=
link_to
'↓'
,
rails_blob_path
(
im
.
image
),
download:
im
.
name
%>
</figcaption>
</figure>
<%
end
%>
</div>
...
...
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