Skip to content

Commit

Permalink
Remove icons, update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
davegaeddert committed Jul 10, 2024
1 parent f391f53 commit 472d595
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 52 deletions.
19 changes: 0 additions & 19 deletions app/assets/bolthead.svg

This file was deleted.

Binary file removed app/assets/favicon.ico
Binary file not shown.
12 changes: 5 additions & 7 deletions app/templates/home.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{% extends "base.html" %}

{% block content %}
<div class="mt-20 flex flex-col items-center">
<h1 class="text-5xl text-center tracking-tight">{{ message }}</h1>

<img src="{{ asset('plainhead.svg') }}" class="animate-[spin_30s_linear_infinite] mt-6 max-h-32" alt="">
<div class="flex flex-col items-center mt-20">
<h1 class="text-5xl tracking-tight text-center">{{ message }}</h1>

{% if request.user %}
<div class="flex items-center mt-8 bg-black/10 rounded-full p-2 pr-8">
<img src="{{ request.user.get_avatar_url() }}" alt="" class="rounded-full w-14 h-14 mr-2 ring-1 ring-black/10">
<div class="flex items-center p-2 pr-8 mt-8 rounded-full bg-black/10">
<img src="{{ request.user.get_avatar_url() }}" alt="" class="mr-2 rounded-full w-14 h-14 ring-1 ring-black/10">
<div>
{{ request.user }}
<form action="{{ url('logout') }}" method="post">
Expand All @@ -19,7 +17,7 @@ <h1 class="text-5xl text-center tracking-tight">{{ message }}</h1>
</div>
{% endif %}

<div class="text-center space-y-2 mt-8">
<div class="mt-8 space-y-2 text-center">
<p>You are running Plain {{ plain_version }} on Python {{ python_version }}.</p>
<p>Read the <a class="text-blue-600 hover:underline" href="https://plainframework.com/docs/">documentation</a> or <a class="text-blue-600 hover:underline" href="{{ url('admin:index') }}">go to the admin</a> (make yourself staff first)</p>
<p>Create a new local package with <code class="bg-black/90 text-white text-sm px-1.5 py-0.5 rounded-md">plain create name</code></p>
Expand Down
1 change: 0 additions & 1 deletion app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from plain.urls import include, path

urlpatterns = [
path("favicon.ico", views.FaviconView),
path("admin/", include(plain.staff.admin.urls)),
path("logout/", LogoutView, name="logout"),
path("login/", views.LoginView, name="login"),
Expand Down
11 changes: 2 additions & 9 deletions app/views.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import sys

from plain.auth.views import AuthViewMixin
from plain.http import FileResponse
from plain.passwords.views import PasswordLoginView, PasswordSignupView
from plain.runtime import APP_PATH, __version__
from plain.views import TemplateView, View
from plain.runtime import __version__
from plain.views import TemplateView


# An example of a base mixin that can be used on almost all app views,
Expand All @@ -22,12 +21,6 @@ def get_html_title(self):
return self.html_title


class FaviconView(View):
def get(self):
favicon_path = APP_PATH / "assets" / "favicon.ico"
return FileResponse(favicon_path.open("rb"), content_type="image/x-icon")


class HomeView(BaseViewMixin, TemplateView):
template_name = "home.html"
html_title = "Home"
Expand Down
32 changes: 16 additions & 16 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 472d595

Please sign in to comment.