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,
|
AltText: tmpl.AltText,
|
||||||
Visibility: tmpl.Visibility,
|
Visibility: tmpl.Visibility,
|
||||||
Gallery: tmpl.Gallery,
|
Gallery: tmpl.Gallery,
|
||||||
|
Pinned: tmpl.Pinned,
|
||||||
Explicit: tmpl.Explicit,
|
Explicit: tmpl.Explicit,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -270,7 +270,7 @@
|
||||||
<input type="checkbox"
|
<input type="checkbox"
|
||||||
name="pinned"
|
name="pinned"
|
||||||
value="true"
|
value="true"
|
||||||
{{if or (not .EditPhoto) (.EditPhoto.Pinned)}}checked{{end}}>
|
{{if .EditPhoto.Pinned}}checked{{end}}>
|
||||||
Keep this photo at the top of my gallery
|
Keep this photo at the top of my gallery
|
||||||
</label>
|
</label>
|
||||||
<p class="help">
|
<p class="help">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user