~linuxgoose/bocpress

5e8eb74365d3cef3c9f158b00962e69709d4b518 — Jordan Robinson 2 months ago fc7fd38
update dashboard to be workshop on the frontend
M main/templates/main/dashboard.html => main/templates/main/dashboard.html +2 -2
@@ 1,10 1,10 @@
{% extends 'main/layout.html' %}

{% block title %}Dashboard — {{ request.user.username }}{% endblock %}
{% block title %}Workshop — {{ request.user.username }}{% endblock %}

{% block content %}
<main>
    <h1>Dashboard</h1>
    <h1>Workshop</h1>
    <p>
        Hi {{ request.user.username }}, thank you for joining the fold. Within these pages, your thoughts may take shape and your stories may flourish. 
        Write freely, explore boldly, and trust that this space remains devoted to your creativity and care.

M main/templates/main/guides_comments.html => main/templates/main/guides_comments.html +1 -1
@@ 38,7 38,7 @@
            Blog authors can approve a comment either from each blog post
            page or from the
            <a href="{% url 'comment_pending' %}">Comments pending</a>
            dashboard page.
            workshop page.
        </li>
        <li>Commenters do not get any notification, in any case.</li>
    </ul>

M main/templates/main/guides_images.html => main/templates/main/guides_images.html +2 -2
@@ 22,9 22,9 @@
    <h2>Upload</h2>
    <p>
        There are two ways to upload an asset. Either via the
        <a href="{% url 'image_list' %}">assets dashboard</a>, or via any post or page editing page.
        <a href="{% url 'image_list' %}">assets workshop</a>, or via any post or page editing page.
    </p>
    <p><b>Assets dashboard</b>: To upload, use the file selector at the <a href="{% url 'image_list' %}">top</a>.</p>
    <p><b>Assets workshop</b>: To upload, use the file selector at the <a href="{% url 'image_list' %}">top</a>.</p>
    <p>
        <b>Post/page edit</b>: To upload, just drag and drop onto the text area of the new post or page.
    </p>

M main/templates/main/layout.html => main/templates/main/layout.html +1 -1
@@ 50,7 50,7 @@
            {% else %}
            <a href="//{{ request.user.username }}.{{ request.get_host }}">View blog</a>
            {% endif %}
            | <a href="{% url 'dashboard' %}">Dashboard</a>
            | <a href="{% url 'dashboard' %}">Workshop</a>
            | <a href="{% url 'post_create' %}">New post</a>
            {% if blog_user.custom_domain %}
            | <a href="//{{ blog_user.custom_domain }}{{ request.path }}">View at {{ blog_user.custom_domain }}</a>

M main/urls.py => main/urls.py +4 -4
@@ 10,7 10,7 @@ admin.site.site_header = "BōcPress admin"
urlpatterns = [
    path("", general.index, name="index"),
    path("blog/", general.blog_index, name="blog_index"),
    path("dashboard/", general.dashboard, name="dashboard"),
    path("workshop/", general.dashboard, name="dashboard"),
    path("about/methodology/", general.methodology, name="methodology"),
    path("about/transparency/", general.transparency, name="transparency"),
    path("about/comparisons/", general.comparisons, name="comparisons"),


@@ 79,7 79,7 @@ urlpatterns += [

# blog posts and post snapshots
urlpatterns += [
    path("posts-dashboard/", general.PostList.as_view(), name="post_list_dashboard"),
    path("posts-workshop/", general.PostList.as_view(), name="post_list_dashboard"),
    path(
        "post-backups/create/", general.SnapshotCreate.as_view(), name="snapshot_create"
    ),


@@ 97,7 97,7 @@ urlpatterns += [
    path("post/<slug:slug>/", general.post_detail_redir, name="post_detail_redir_b"),
    path("blog/<slug:slug>/edit/", general.PostUpdate.as_view(), name="post_update"),
    path("blog/<slug:slug>/delete/", general.PostDelete.as_view(), name="post_delete"),
    path("dashboard/homepage/", general.HomepageUpdate.as_view(), name="homepage_update"),
    path("workshop/homepage/", general.HomepageUpdate.as_view(), name="homepage_update"),
]

# blog extras


@@ 115,7 115,7 @@ urlpatterns += [
    # really simple licensing
    path("license/", general.rsl_license_redirect, name="rsl_license_redirect"),
    path("license.xml", general.rsl_license_detail.as_view(), name="rsl_license"),
    path("dashboard/licensing/", general.RSLUpdate.as_view(), name="rsl_update"),
    path("workshop/licensing/", general.RSLUpdate.as_view(), name="rsl_update"),

    path("sitemap.xml", general.sitemap, name="sitemap"),
    path("robots.txt", general.robotstxt.as_view(), name="robots_txt"),