Pinned photo bugfixes on initial upload page
This commit is contained in:
parent
22b8cf0594
commit
9b72a95ca4
|
@ -82,6 +82,7 @@ func CreatePhoto(tmpl Photo) (*Photo, error) {
|
|||
AltText: tmpl.AltText,
|
||||
Visibility: tmpl.Visibility,
|
||||
Gallery: tmpl.Gallery,
|
||||
Pinned: tmpl.Pinned,
|
||||
Explicit: tmpl.Explicit,
|
||||
}
|
||||
|
||||
|
|
|
@ -270,7 +270,7 @@
|
|||
<input type="checkbox"
|
||||
name="pinned"
|
||||
value="true"
|
||||
{{if or (not .EditPhoto) (.EditPhoto.Pinned)}}checked{{end}}>
|
||||
{{if .EditPhoto.Pinned}}checked{{end}}>
|
||||
Keep this photo at the top of my gallery
|
||||
</label>
|
||||
<p class="help">
|
||||
|
|
Loading…
Reference in New Issue
Block a user