diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 18:04:39 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-09-18 18:42:26 -0700 |
commit | a1eebad359f6229fdba5fccef51a5e6d68e6fa88 (patch) | |
tree | 743e54d37b7b486674b729700487a2488f2cd81f /python/fatcat_web | |
parent | a4ea1a0e13b1b8016bbfaa0f0fbf983f0abdd5a5 (diff) | |
download | fatcat-a1eebad359f6229fdba5fccef51a5e6d68e6fa88.tar.gz fatcat-a1eebad359f6229fdba5fccef51a5e6d68e6fa88.zip |
add guide editing links to edit forms and signup message
Diffstat (limited to 'python/fatcat_web')
-rw-r--r-- | python/fatcat_web/auth.py | 3 | ||||
-rw-r--r-- | python/fatcat_web/templates/container_create.html | 5 | ||||
-rw-r--r-- | python/fatcat_web/templates/container_edit.html | 11 | ||||
-rw-r--r-- | python/fatcat_web/templates/file_edit.html | 6 | ||||
-rw-r--r-- | 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 @@ <p>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. - -<p>Not all publications are in a container. - +book series, or a blog. Not all publications are in a container. <form class="ui form" id="create_container_form" method="POST" action="/container/create"> {% 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 @@ <div class="ui segment"> <h1 class="ui header">Edit Container Entity</h1> +<p>See <a href="https://guide.fatcat.wiki/entity_container.html">the catalog +style guide</a> for schema notes, and <a +href="https://guide.fatcat.wiki/editing_quickstart.html">the editing +tutorial</a> if this is your first time making an edit. + <form class="ui form" id="edit_container_form" method="POST" action="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/container/{{ existing_ident }}/edit"> {% endblock %} + + <p>See <a href="https://guide.fatcat.wiki/entity_container.html">the catalog + style guide</a> for schema notes, and <a + href="https://guide.fatcat.wiki/editing_quickstart.html">the editing + tutorial</a> if this is your first time making an edit. + {{ form.hidden_tag() }} <h3 class="ui dividing header">Editgroup Metadata</h3> 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 @@ <form class="ui form" id="edit_file_form" method="POST" action="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/file/{{ existing_ident }}/edit"> {% endblock %} + + <p>See <a href="https://guide.fatcat.wiki/entity_file.html">the catalog + style guide</a> for schema notes, and <a + href="https://guide.fatcat.wiki/editing_quickstart.html">the editing + tutorial</a> if this is your first time making an edit. + {{ form.hidden_tag() }} <h3 class="ui dividing header">Editgroup Metadata</h3> 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 @@ <form class="ui form" id="edit_release_form" method="POST" action="{% if editgroup %}/editgroup/{{ editgroup.editgroup_id }}{% endif %}/release/{{ existing_ident }}/edit"> {% endblock %} + + <p>See <a href="https://guide.fatcat.wiki/entity_release.html">the catalog + style guide</a> for schema notes, and <a + href="https://guide.fatcat.wiki/editing_quickstart.html">the editing + tutorial</a> if this is your first time making an edit. + {{ form.hidden_tag() }} <h3 class="ui dividing header">Editgroup Metadata</h3> |