From a1eebad359f6229fdba5fccef51a5e6d68e6fa88 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 18 Sep 2019 18:04:39 -0700 Subject: add guide editing links to edit forms and signup message --- python/fatcat_web/auth.py | 3 ++- python/fatcat_web/templates/container_create.html | 5 +---- python/fatcat_web/templates/container_edit.html | 11 +++++++++++ python/fatcat_web/templates/file_edit.html | 6 ++++++ python/fatcat_web/templates/release_edit.html | 6 ++++++ 5 files changed, 26 insertions(+), 5 deletions(-) diff --git a/python/fatcat_web/auth.py b/python/fatcat_web/auth.py index c3f7fc05..5c8507c1 100644 --- a/python/fatcat_web/auth.py +++ b/python/fatcat_web/auth.py @@ -71,8 +71,9 @@ def handle_oauth(remote, token, user_info): if http_status == 201: flash("Welcome to Fatcat! An account has been created for you with a temporary username; you may wish to change it under account settings") flash("You must use the same mechanism ({}) to login in the future".format(remote.name)) + flash("Check out 'The Guide' (linked above) for an editing quickstart tutorial") else: - flash("Welcome back!") + flash("Welcome back {}!".format(editor.username)) # write token and username to session session.permanent = True diff --git a/python/fatcat_web/templates/container_create.html b/python/fatcat_web/templates/container_create.html index 5dde37bf..5786d05d 100644 --- a/python/fatcat_web/templates/container_create.html +++ b/python/fatcat_web/templates/container_create.html @@ -6,10 +6,7 @@

A "container" is a anything that groups publications together. For example, a journal (eg, "New England Journal of Medicine"), conference proceedings, a -book series, or a blog. - -

Not all publications are in a container. - +book series, or a blog. Not all publications are in a container.

{% endblock %} diff --git a/python/fatcat_web/templates/container_edit.html b/python/fatcat_web/templates/container_edit.html index 965635a4..8ee8f50b 100644 --- a/python/fatcat_web/templates/container_edit.html +++ b/python/fatcat_web/templates/container_edit.html @@ -6,8 +6,19 @@

Edit Container Entity

+

See the catalog +style guide for schema notes, and the editing +tutorial if this is your first time making an edit. + {% endblock %} + +

See the catalog + style guide for schema notes, and the editing + tutorial if this is your first time making an edit. + {{ form.hidden_tag() }}

Editgroup Metadata

diff --git a/python/fatcat_web/templates/file_edit.html b/python/fatcat_web/templates/file_edit.html index 74a5682a..e8a421b3 100644 --- a/python/fatcat_web/templates/file_edit.html +++ b/python/fatcat_web/templates/file_edit.html @@ -8,6 +8,12 @@ {% endblock %} + +

See the catalog + style guide for schema notes, and the editing + tutorial if this is your first time making an edit. + {{ form.hidden_tag() }}

Editgroup Metadata

diff --git a/python/fatcat_web/templates/release_edit.html b/python/fatcat_web/templates/release_edit.html index 9a4cf80d..a4a7e56f 100644 --- a/python/fatcat_web/templates/release_edit.html +++ b/python/fatcat_web/templates/release_edit.html @@ -8,6 +8,12 @@ {% endblock %} + +

See the catalog + style guide for schema notes, and the editing + tutorial if this is your first time making an edit. + {{ form.hidden_tag() }}

Editgroup Metadata

-- cgit v1.2.3