mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-18 14:27:29 -06:00
[feature] Poll web view (#2377)
* [feature] Render polls nicely on the web view * use figure for poll, other small tweaks * reverse share + count (lines up better) * poll options list entries * fix up some remaining things
This commit is contained in:
parent
cfefbc08d8
commit
8c2d94c168
8 changed files with 207 additions and 7 deletions
|
|
@ -168,6 +168,10 @@ func acctInstance(acct string) string {
|
|||
return ""
|
||||
}
|
||||
|
||||
func increment(i int) int {
|
||||
return i + 1
|
||||
}
|
||||
|
||||
func LoadTemplateFunctions(engine *gin.Engine) {
|
||||
engine.SetFuncMap(template.FuncMap{
|
||||
"escape": escape,
|
||||
|
|
@ -180,5 +184,6 @@ func LoadTemplateFunctions(engine *gin.Engine) {
|
|||
"timestampPrecise": timestampPrecise,
|
||||
"emojify": emojify,
|
||||
"acctInstance": acctInstance,
|
||||
"increment": increment,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue