From d2828cabbe6d1f7a14bf859d474a5106e90e41a7 Mon Sep 17 00:00:00 2001 From: Inga Kirschnick <inga.kirschnick@uni-bielefeld.de> Date: Fri, 24 Feb 2023 15:46:44 +0100 Subject: [PATCH] Explanation update and profile link button --- app/templates/corpora/corpus.html.j2 | 11 +++++++++++ app/templates/corpora/public_corpus.html.j2 | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 84950403..790d4fac 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -86,6 +86,9 @@ <span class="card-title">Share your Corpus</span> <br> <p></p> + <p><b>Change your Corpus Status to Public</b></p> + <p><i>Other users can only see the meta data of your corpus. The files of the corpus remain private and can only be viewed via a share link.</i></p> + <br> <div class="action-switch switch" data-action="toggle-is-public"> <span class="share"></span> <label> @@ -96,6 +99,14 @@ </div> <br> <p></p> + <hr style="height:1px;border:none;color:grey;background-color:grey;"> + <br> + <p></p> + <p><b>Create a link to share your corpus files with your team</b></p> + <p><i>With the link other users follow your corpus directly, if it has not expired. + You can set different roles via the link, you can also edit them later in the menu below. + It is recommended not to set the expiration date of the link too far.</i></p> + <br> <div class="row"> <div class="col s4"> <div class="input-field"> diff --git a/app/templates/corpora/public_corpus.html.j2 b/app/templates/corpora/public_corpus.html.j2 index 17a7ae07..edf6ed74 100644 --- a/app/templates/corpora/public_corpus.html.j2 +++ b/app/templates/corpora/public_corpus.html.j2 @@ -68,11 +68,12 @@ </td> </tr> </table> - {% if not current_user.is_following_corpus(corpus) %} <br> <p></p> + {% if not current_user.is_following_corpus(corpus) %} <a class="waves-effect waves-light btn-small">Request Corpus</a> {% endif %} + <a class="waves-effect waves-light btn-small" href="{{ url_for('users.user', user_id=corpus.user.id) }}">View profile</a> </div> </div> </div> -- GitLab