Unverified Commit 4ed3199b authored by mvdbeek's avatar mvdbeek
Browse files

Merge branch 'release_23.0' into release_23.1

parents 7f8d8062 6774c5a3
Loading
Loading
Loading
Loading
+4 −7
Original line number Diff line number Diff line
Edit this template to customise the "account activation" HTML email your
users will receive.
Use this template to customise the "account activation" HTML email your
users will receive. Copy the file to
{{ templates_dir }}/mail/activation-email.html and modify as required.

If you are adding URLs into this, remember that only absolute URLS (with
a domain name) make sense in email! They can be served from any stable
@@ -26,10 +27,6 @@ Template begins here >>>>>>
  <head>
    <meta charset="utf-8">
    <title>Galaxy account activation</title>

    <!-- Load custom font from Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto&display=swap" rel="stylesheet">
  </head>
  <body style="font-family: 'Roboto', sans-serif;">
@@ -73,7 +70,7 @@ Template begins here >>>>>>
        {% endif %}
        <li>
          Find out more about the Galaxy Project at
          <a href="galaxyproject.org">galaxyproject.org</a>.
          <a href="https://galaxyproject.org">galaxyproject.org</a>.
        </li>
      </ul>
    </p>
+4 −3
Original line number Diff line number Diff line
Edit this template to customise the "account activation" text email your
users will receive.
Use this template to customise the "account activation" text email your
users will receive. Copy the file to
{{ templates_dir }}/mail/activation-email.txt and modify as required.

If you are adding URLs into this, remember that only absolute URLS (with
a domain name) make sense in email! They can be served from any stable
location, including your Galaxy server or GitHub.

The following variables are available for inserting into the html like
The following variables are available for inserting into the text like
{{ variable_name }}. They will be rendered into the text before the email is
sent:

+1 −7
Original line number Diff line number Diff line
@@ -33,13 +33,7 @@ from markupsafe import escape
        tagged_item_id = str( trans.security.encode_id ( tagged_item.id ) )
        controller_name = get_controller_name(tagged_item)
        click_url = h.url_for( controller='/' + modern_route_for_controller(controller_name) , action='list_published')
        community_tags = trans.app.tag_handler.get_community_tags( item=tagged_item, limit=5 )

        ## Having trouble converting list of tags into a plain array, this just
        ## just plucks out the name
        community_tag_names = []
        for tag in community_tags:
            community_tag_names.append(escape(tag.name))
        community_tag_names = community_tags = tagged_item.make_tag_string_list()
    %>
    
    <div id="tags-community-${controller_name}-${tagged_item_id}"></div>