mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-30 02:46:14 -06:00
bit of CSS fiddling, move apps from front page to login info
This commit is contained in:
parent
5aef4ea83a
commit
154518947a
10 changed files with 243 additions and 281 deletions
|
|
@ -60,7 +60,14 @@ func (m *Module) indexHandler(c *gin.Context) {
|
|||
Instance: instance,
|
||||
OGMeta: apiutil.OGBase(instance),
|
||||
Stylesheets: []string{cssAbout, cssIndex},
|
||||
Extra: map[string]any{"showStrap": true, "showLoginButton": true},
|
||||
Extra: map[string]any{
|
||||
// Render "home to x
|
||||
// users [etc]" strap.
|
||||
"showStrap": true,
|
||||
// Show "log in" button
|
||||
// in top-right corner.
|
||||
"showLoginButton": true,
|
||||
},
|
||||
}
|
||||
|
||||
apiutil.TemplateWebPage(c, page)
|
||||
|
|
|
|||
|
|
@ -50,13 +50,10 @@ func (m *Module) loginGETHandler(c *gin.Context) {
|
|||
}
|
||||
|
||||
page := apiutil.WebPage{
|
||||
Template: "login.tmpl",
|
||||
Template: "login_info.tmpl",
|
||||
Instance: instance,
|
||||
OGMeta: apiutil.OGBase(instance),
|
||||
Stylesheets: []string{cssLogin},
|
||||
Extra: map[string]any{
|
||||
"showStrap": false,
|
||||
},
|
||||
Stylesheets: []string{cssAbout, cssLoginInfo},
|
||||
}
|
||||
|
||||
apiutil.TemplateWebPage(c, page)
|
||||
|
|
@ -59,15 +59,15 @@ const (
|
|||
eTagHeader = "ETag" // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag
|
||||
lastModifiedHeader = "Last-Modified" // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Last-Modified
|
||||
|
||||
cssFA = assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css"
|
||||
cssAbout = distPathPrefix + "/about.css"
|
||||
cssIndex = distPathPrefix + "/index.css"
|
||||
cssLogin = distPathPrefix + "/login.css"
|
||||
cssStatus = distPathPrefix + "/status.css"
|
||||
cssThread = distPathPrefix + "/thread.css"
|
||||
cssProfile = distPathPrefix + "/profile.css"
|
||||
cssSettings = distPathPrefix + "/settings-style.css"
|
||||
cssTag = distPathPrefix + "/tag.css"
|
||||
cssFA = assetsPathPrefix + "/Fork-Awesome/css/fork-awesome.min.css"
|
||||
cssAbout = distPathPrefix + "/about.css"
|
||||
cssIndex = distPathPrefix + "/index.css"
|
||||
cssLoginInfo = distPathPrefix + "/login-info.css"
|
||||
cssStatus = distPathPrefix + "/status.css"
|
||||
cssThread = distPathPrefix + "/thread.css"
|
||||
cssProfile = distPathPrefix + "/profile.css"
|
||||
cssSettings = distPathPrefix + "/settings-style.css"
|
||||
cssTag = distPathPrefix + "/tag.css"
|
||||
|
||||
jsFrontend = distPathPrefix + "/frontend.js" // Progressive enhancement frontend JS.
|
||||
jsSettings = distPathPrefix + "/settings.js" // Settings panel React application.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue