Commit Graph

9 Commits (4127f923aa174ecebed93898dd39c1b21b6b2605)

Author SHA1 Message Date
Aravinth Manivannan 5bdbdaf267
feat: display comments on gists 2022-03-13 20:00:42 +05:30
Aravinth Manivannan dbc233c1ed
feat: comment on gists 2022-03-13 19:25:33 +05:30
Aravinth Manivannan 95efab95da
feat: load comments in gists view route and comment form 2022-03-13 17:34:18 +05:30
Aravinth Manivannan 9fb203de32
feat: conditionally display profile link 2022-03-11 23:53:31 +05:30
Aravinth Manivannan 28b501810e
feat: separate navigation bars for logged and unauthenticated users
SUMMARY
    Authenticated and unauthenticated users have different requirements.
    Links to profile and settings are irrelevant for unauthenticated
    users. So separate navigation bars.

USAGE
    crate::pages::auth_ctx
	Authenticated user context should be supplied on every
	authenticated route template render. Authenticated navigation
	bar depends on "loggedin_user" to render profile link.

    AUTH_NAV("auth_nav")
	Should only be used in authenticated routes. Depends on
	"loggedin_user" authenticated user context, which can't be
	supplied in unauthenticated routes.

NOTES
    Currently, there's (template)code
    duplication, when inheritance for "include" templates are
    implemented in Tera crate, navigation bars implementations should be
    refactored to avoid duplication.
2022-02-23 12:17:48 +05:30
Aravinth Manivannan d0dbfd9729
chore: reorganize templates 2022-02-23 09:52:56 +05:30
Aravinth Manivannan fdbd62a0a6
feat: add error styling 2022-02-23 08:07:37 +05:30
Aravinth Manivannan 3d684ff53f
feat: error component 2022-02-22 10:09:53 +05:30
Aravinth Manivannan 34e8d8851f
feat: login and register HTML pages 2022-02-21 02:22:01 +05:30