Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
imghost
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
imghost
Commits
fd79c5f5
Commit
fd79c5f5
authored
7 years ago
by
Janne Mareike Koschinski
Browse files
Options
Downloads
Patches
Plain Diff
Fixed css issues
parent
5b02d518
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
assets/sass/_page_image_detail.sass
+27
-24
27 additions, 24 deletions
assets/sass/_page_image_detail.sass
templates/image_detail.html
+21
-9
21 additions, 9 deletions
templates/image_detail.html
with
48 additions
and
33 deletions
assets/sass/_page_image_detail.sass
+
27
−
24
View file @
fd79c5f5
...
...
@@ -11,30 +11,33 @@
background
:
#333333
border-radius
:
4px
box-shadow
:
0
2px
4px
rgba
(
0
,
0
,
0
,
0
.4
)
display
:
flex
flex-direction
:
row
#url-field
background
:
none
color
:
#fff
border
:
none
flex-shrink
:
1
display
:
block
flex-grow
:
1
width
:
0
margin
:
8px
text-overflow
:
ellipsis
#copy-url
display
:
block
background
:
#FFC107
padding
:
4px
16px
border-radius
:
2px
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0
.1
)
border
:
none
font-family
:
'Lato'
,
sans-serif
font-size
:
10pt
line-height
:
24px
margin
:
8px
cursor
:
pointer
p
color
:
#ffffff
div
display
:
flex
flex-direction
:
row
input
background
:
none
color
:
#fff
border
:
none
flex-shrink
:
1
display
:
block
flex-grow
:
1
width
:
0
margin
:
8px
text-overflow
:
ellipsis
button
.copy
display
:
block
background
:
#FFC107
padding
:
4px
16px
border-radius
:
2px
box-shadow
:
0
1px
2px
rgba
(
0
,
0
,
0
,
0
.1
)
border
:
none
font-family
:
'Lato'
,
sans-serif
font-size
:
10pt
line-height
:
24px
margin
:
8px
cursor
:
pointer
.actions
background
:
#333333
border-radius
:
4px
...
...
This diff is collapsed.
Click to expand it.
templates/image_detail.html
+
21
−
9
View file @
fd79c5f5
...
...
@@ -34,20 +34,32 @@
</form>
</div>
{{end}}
<div
class=
"url"
>
<input
id=
"url-field"
type=
"text"
value=
"https://i.k8r.eu/{{.Image.Id}}"
>
<button
id=
"copy-url"
>
Copy
</button>
<p>
Detail Page
</p>
<div>
<input
id=
"url_full"
type=
"text"
value=
"https://i.k8r.eu/i/{{.Image.Id}}"
>
<button
class=
"copy"
data-target=
"#url_full"
>
Copy
</button>
</div>
</div>
<div
class=
"url"
>
<p>
Direct Link
</p>
<div>
<input
id=
"url_direct"
type=
"text"
value=
"https://i.k8r.eu/{{.Image.Id}}"
>
<button
class=
"copy"
data-target=
"#url_direct"
>
Copy
</button>
</div>
</div>
</div>
</div>
<script>
const
urlCopyButton
=
document
.
getElementById
(
"
copy-url
"
);
const
urlField
=
document
.
getElementById
(
"
url-field
"
);
urlCopyButton
.
addEventListener
(
"
click
"
,
()
=>
{
urlField
.
select
();
document
.
execCommand
(
"
Copy
"
);
})
Array
.
prototype
.
slice
.
call
(
document
.
querySelectorAll
(
"
button.copy[data-target]
"
)).
forEach
((
button
)
=>
{
const
target
=
document
.
querySelector
(
button
.
dataset
[
"
target
"
]);
if
(
target
)
{
button
.
addEventListener
(
"
click
"
,
()
=>
{
target
.
select
();
document
.
execCommand
(
"
Copy
"
);
})
}
});
</script>
{{if .IsMine}}
<script>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment