mirror of https://github.com/realaravinth/gitpad
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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. |
1 year ago | |
---|---|---|
.github | 1 year ago | |
config | 1 year ago | |
database | 1 year ago | |
docs | 1 year ago | |
src | 1 year ago | |
static/cache/css | 1 year ago | |
templates | 1 year ago | |
.env-sample | 1 year ago | |
.gitignore | 1 year ago | |
Cargo.lock | 1 year ago | |
Cargo.toml | 1 year ago | |
LICENSE.md | 1 year ago | |
Makefile | 1 year ago | |
README.md | 1 year ago | |
build.rs | 1 year ago | |
sqlx-data.json | 1 year ago |
README.md
Features
- Upload code snippets(✓ REST API)
- Syntax Highlighting
- Comments
- Versioning through Git
- Fork gists
- Gist privacy: public, unlisted, private
- Git clone via HTTP and SSH
- Activity Pub implementation for publishing native gists and commenting
- Gitea OAuth integration
Why?
Gists are nice, while there are wonderful forges like Gitea, there isn't a libre pastebin implementation that can rival GitHub Gists.
Usage
- All configuration is done through
./config/default.toml(can be moved to
/etc/gitpad/config.toml
).