Commit be79c652 authored by Leo Iannacone's avatar Leo Iannacone

use admin.name for label email (if defined) and hide spamfree format under...

use admin.name for label email (if defined) and hide spamfree format under address attribute in html
parent 1c07000c
......@@ -16,8 +16,11 @@ if (window.location.pathname == '/') {
if ($(this).attr('subject')) {
subject = '?subject=' + $(this).attr('subject')
}
var real_email = $(this).html().replace('AT','@').replace('DOT','.').replace(/ /g,'')
real_email = '<a href="mailto:' + real_email + subject + '">' + real_email + '</a>'
var real_email = $(this).attr('address').replace('AT','@').replace('DOT','.').replace(/ /g,'')
var label = real_email
if (config.debomatic.admin.name && config.debomatic.admin.name != 'Your Name')
label = config.debomatic.admin.name
real_email = '<a href="mailto:' + real_email + subject + '">' + label + '</a>'
$(this).html(real_email)
})
}
......
......@@ -27,7 +27,7 @@
<h3 class="panel-title">Account Request</h3>
</div>
<div class="panel-body">
<p>For build account requests please mail <span subject="Build account request for <%= web.debomatic.dput.host %>" class="email"><%= web.debomatic.admin.email %></span>.</p>
<p>For build account requests please mail <span subject="Build account request for <%= web.debomatic.dput.host %>" address="<%= web.debomatic.admin.email %>" class="email"></span>.</p>
</div>
</div>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment