Commit 64566fd6 authored by Leo Iannacone's avatar Leo Iannacone

added auto subject for account request

parent e1ee2aef
......@@ -16,8 +16,12 @@ else if (window.location.pathname == '/') {
// convert email addresses in the right format
var emails = $(".email")
$.each(emails, function (){
var subject = ''
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 + '">' + real_email + '</a>'
real_email = '<a href="mailto:' + real_email + subject + '">' + real_email + '</a>'
$(this).html(real_email)
})
}
\ No newline at end of file
......@@ -25,7 +25,7 @@
<h3 class="panel-title">Account Request</h3>
</div>
<div class="panel-body">
<p>For build account requests please mail <span class="email"><%= web.debomatic.admin.email %></span>.</p>
<p>For build account requests please mail <span subject="Build account request for <%= web.host %>"class="email"><%= web.debomatic.admin.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