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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Janne Mareike Koschinski
imghost
Compare revisions
a0a6a35aadb91054df8fccf25cb641e9c8365b95 to 67329809a7e5a861f6a5bca18473a6ef30091008
Project 'justJanne/imghost-frontend' was moved to 'justJanne/imghost'. Please update any links and bookmarks that may still have the old path.
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
justJanne/imghost
Select target project
No results found
67329809a7e5a861f6a5bca18473a6ef30091008
Select Git revision
Branches
main
ui-rewrite
2 results
Swap
Target
justJanne/imghost
Select target project
justJanne/imghost
1 result
a0a6a35aadb91054df8fccf25cb641e9c8365b95
Select Git revision
Branches
main
ui-rewrite
2 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source
2
Use .png suffix for image URLs
· 71d47ab8
Janne Mareike Koschinski
authored
Dec 7, 2018
Verified
71d47ab8
show image list by default
· 67329809
Janne Mareike Koschinski
authored
Dec 7, 2018
Verified
67329809
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
page_index.go
+1
-7
1 addition, 7 deletions
page_index.go
templates/image_detail.html
+1
-1
1 addition, 1 deletion
templates/image_detail.html
templates/image_list.html
+1
-1
1 addition, 1 deletion
templates/image_list.html
with
3 additions
and
9 deletions
page_index.go
View file @
67329809
...
...
@@ -21,13 +21,7 @@ func removeFileExtensions(path string) string {
func
pageIndex
(
ctx
PageContext
)
http
.
Handler
{
return
http
.
HandlerFunc
(
func
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
if
r
.
URL
.
Path
==
"/"
{
user
:=
parseUser
(
r
)
if
err
:=
formatTemplate
(
w
,
"index.html"
,
IndexData
{
user
,
});
err
!=
nil
{
panic
(
err
)
}
http
.
Redirect
(
w
,
r
,
"/me/images"
,
http
.
StatusFound
)
}
else
if
r
.
URL
.
Path
==
"/favicon.ico"
{
w
.
Header
()
.
Set
(
"Vary"
,
"Accept-Encoding"
)
w
.
Header
()
.
Set
(
"Cache-Control"
,
"public, max-age=31536000"
)
...
...
This diff is collapsed.
Click to expand it.
templates/image_detail.html
View file @
67329809
...
...
@@ -8,7 +8,7 @@
<h2
class=
"title"
>
{{.Image.Title}}
</h2>
{{end}}
<a
class=
"image"
href=
"/{{.Image.Id}}"
>
<img
src=
"/{{.Image.Id}}"
>
<img
src=
"/{{.Image.Id}}
.png
"
>
</a>
{{if .IsMine}}
<p
class=
"description fake-input"
contenteditable=
"true"
placeholder=
"Description"
...
...
This diff is collapsed.
Click to expand it.
templates/image_list.html
View file @
67329809
...
...
@@ -4,7 +4,7 @@
{{range .Images}}
<a
class=
"image"
href=
"/i/{{.Id}}"
>
<div
class=
"image-container"
>
<img
src=
"/{{.Id}}t"
>
<img
src=
"/{{.Id}}t
.png
"
>
</div>
<div
class=
"info"
>
<p>
{{.OriginalName}}
</p>
...
...
This diff is collapsed.
Click to expand it.