-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Navbar #5
base: master
Are you sure you want to change the base?
Add Navbar #5
Conversation
Add /login route. Reuses auth code from del. Move the header to a seperate template and use nested templates. Add HTML and CSS for navbar. Adjust the to padding of body to account for the space the navbar uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generally looks good. I'm waiting on a discussion with Kathleen about how we want the bot to look; I know this is probably unnecessary but if there's a second emote with different colours I might use that for the history page.
Also, this is probably a good opportunity to move the logo image into its own file 😛
"html/template" | ||
"log" | ||
"net/http" | ||
"strconv" | ||
|
||
_ "github.com/mattn/go-sqlite3" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
D'oh! I didn't even notice this was out of order.
@@ -115,6 +116,15 @@ func history(w http.ResponseWriter, r *http.Request) { | |||
} | |||
} | |||
|
|||
func login(w http.ResponseWriter, r *http.Request) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is literally exactly what I wrote to implement the login button!
I think I'll break this up into two commits, so I can merge the minor changes now before tonight's show. |
Add /login route. Reuses auth code from del.
Move the header to a seperate template and use nested templates.
Add HTML and CSS for navbar.
Adjust the to padding of body to account for the space the navbar uses.