Topic: not an issue, just a wish....
==== Required information ====
- iRedMail version: 0.9.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Linux/BSD distribution name and version: Ubuntu 14.04.2 LTS
- Related log if you're reporting an issue:
====
This is purely a fancy add-on and nothing urgent.
This is my fail :
{#fo = open("/etc/iredmail-release","r")}
{#str = fo.read()}
<tr>
<th> Mail version</th>
<td>
{% print str %}
</td>
</tr>
With the second box i get the following error :
File "/usr/share/apache2/iredadmin/libs/../templates/default/dashboard.html", line 168, in template
{% endblock main %}
TemplateSyntaxError: Encountered unknown tag 'endblock'.
If i change the variable to {{ print str}} i get this error :
File "/usr/share/apache2/iredadmin/libs/../templates/default/dashboard.html", line 100, in template
{{print str}}
TemplateSyntaxError: expected token 'end of print statement', got 'str'
I want to alter the dashboard.html that it displays the iredmail version, e.g. /etc/iredmail-release
But my knowledge isn't fluent enough to do it in both jinja and python.
Could you help me out?
thx,
Jochie
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.