Anonymous avatar Anonymous committed 8d80fa4

don't display if no akismet key set

Comments (0)

Files changed (2)


                 {% if page.title != "Home" and can_edit %}
                 <li><a id="page_delete" href="{{ url_for('delete_page', pagename=page.title|replace(" ", "_")) }}">delete</a></li>   
                 {% endif %}
-                {% if can_edit %}
+                {% if can_edit and site.akismet_key %}
                     {% if page.is_spam %}
                     <li><a id="report_spam" href="{{ url_for('report_spam', pagename=page.title|replace(" ", "_")) }}">not spam</a></li>   
                     {% else %}


     <ul id="site_actions">
         <li><a href="{{ url_for('site_changes') }}">recent changes</a></li>
         {% if can_edit %}
-        <li><a href="{{ url_for('site_spam') }}">spam</a></li>
+        {% if site.akismet_key %}
+            <li><a href="{{ url_for('site_spam') }}">spam</a></li>
+        {% endif %}
          <li><a href="{{ url_for('site_settings') }}">settings</a></li>
          <li><a href="{{ url_for('site_design') }}">design</a></li> 
         {% endif %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.