Initial commit
This commit is contained in:
22
indefero/src/IDF/templates/idf/user/changeemail-email.txt
Normal file
22
indefero/src/IDF/templates/idf/user/changeemail-email.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
{blocktrans}Hello {$user},
|
||||
|
||||
To confirm that you want {$email}
|
||||
to be your new email address, just follow this link:
|
||||
|
||||
{$url}
|
||||
|
||||
Alternatively, go to this page:
|
||||
|
||||
{$urlik}
|
||||
|
||||
and provide the following verification key:
|
||||
|
||||
{$key}
|
||||
|
||||
If you do not want to change your email address,
|
||||
just ignore this message.
|
||||
|
||||
Yours faithfully,
|
||||
The development team.
|
||||
{/blocktrans}
|
||||
|
39
indefero/src/IDF/templates/idf/user/changeemail.html
Normal file
39
indefero/src/IDF/templates/idf/user/changeemail.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oops, we found an error in the form.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><strong>{$form.f.key.labelTag}:</strong><br />
|
||||
{if $form.f.key.errors}{$form.f.key.fieldErrors}{/if}
|
||||
{$form.f.key|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Confirm Your New Email Address'}" name="submit" /> | <a href="{url 'IDF_Views_User::myAccount'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<h2>{trans 'Instructions'}</h2>
|
||||
<p>{trans 'Use your email software to read your emails and open your verification email. Either click directly on the verification link or copy/paste the verification key in the box and submit the form.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_key').focus()
|
||||
</script>
|
||||
{/block}
|
||||
|
17
indefero/src/IDF/templates/idf/user/dashboard.html
Normal file
17
indefero/src/IDF/templates/idf/user/dashboard.html
Normal file
@@ -0,0 +1,17 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{$issues.render}
|
||||
{/block}
|
||||
{block context}
|
||||
{if $nb_owner > 0}
|
||||
<p><strong>{trans 'Working issues:'}</strong> <a href="{url 'idf_dashboard'}">{$nb_owner}</a></p>
|
||||
{/if}
|
||||
<p><strong>{trans 'Submitted issues:'}</strong> <a href="{url 'idf_dashboard_submit'}">{$nb_submit}</a></p>
|
||||
{aurl 'url', 'IDF_Views_User::myAccount'}
|
||||
<p>{blocktrans}<a href="{$url}">Update your account</a>.{/blocktrans}</p>
|
||||
{aurl 'url', 'IDF_Views_User::view', array($user.login)}
|
||||
<p>{blocktrans}<a href="{$url}">See your public profile</a>.{/blocktrans}</p>
|
||||
{aurl 'url', 'IDF_Views_Issue::forgeWatchList', array('open')}
|
||||
<p>{blocktrans}<a href="{$url}">See your forge issue watch list</a>.{/blocktrans}</p>
|
||||
{/block}
|
||||
|
171
indefero/src/IDF/templates/idf/user/myaccount.html
Normal file
171
indefero/src/IDF/templates/idf/user/myaccount.html
Normal file
@@ -0,0 +1,171 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oops, please check the form for errors.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" enctype="multipart/form-data" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th>{trans 'Login:'}</th>{aurl 'url', 'IDF_Views_User::view', array($user.login)}
|
||||
<td><a href="{$url}">{$user.login}</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.first_name.labelTag}:</th>
|
||||
<td>{if $form.f.first_name.errors}{$form.f.first_name.fieldErrors}{/if}
|
||||
{$form.f.first_name|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.last_name.labelTag}:</strong></th>
|
||||
<td>{if $form.f.last_name.errors}{$form.f.last_name.fieldErrors}{/if}
|
||||
{$form.f.last_name|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.email.labelTag}:</strong></th>
|
||||
<td>{if $form.f.email.errors}{$form.f.email.fieldErrors}{/if}
|
||||
{$form.f.email|unsafe}<br />
|
||||
<span class="helptext">{$form.f.email.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.language.labelTag}:</th>
|
||||
<td>{if $form.f.language.errors}{$form.f.language.fieldErrors}{/if}
|
||||
{$form.f.language|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.password.labelTag}:</th>
|
||||
<td>{if $form.f.password.errors}{$form.f.password.fieldErrors}{/if}
|
||||
{$form.f.password|unsafe}<br />
|
||||
<span class="helptext">{$form.f.password.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.password2.labelTag}:</th>
|
||||
<td>{if $form.f.password2.errors}{$form.f.password2.fieldErrors}{/if}
|
||||
{$form.f.password2|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="separator">{trans "Public Profile"}</td></tr>
|
||||
<tr>
|
||||
<th>{$form.f.description.labelTag}:</th>
|
||||
<td>{if $form.f.description.errors}{$form.f.description.fieldErrors}{/if}
|
||||
{$form.f.description|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.twitter.labelTag}:</th>
|
||||
<td>{if $form.f.twitter.errors}{$form.f.twitter.fieldErrors}{/if}
|
||||
{$form.f.twitter|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.public_email.labelTag}:</th>
|
||||
<td>{if $form.f.public_email.errors}{$form.f.public_email.fieldErrors}{/if}
|
||||
{$form.f.public_email|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.website.labelTag}:</th>
|
||||
<td>{if $form.f.website.errors}{$form.f.website.fieldErrors}{/if}
|
||||
{$form.f.website|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$form.f.custom_avatar.labelTag}:</th>
|
||||
<td>{if $form.f.custom_avatar.errors}{$form.f.custom_avatar.fieldErrors}{/if}
|
||||
{$form.f.custom_avatar|unsafe}<br />
|
||||
<span class="helptext">{$form.f.custom_avatar.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{if $form.f.remove_custom_avatar.errors}{$form.f.remove_custom_avatar.fieldErrors}{/if}
|
||||
{$form.f.remove_custom_avatar|unsafe}
|
||||
</th>
|
||||
<td>{$form.f.remove_custom_avatar.labelTag}<br />
|
||||
<span class="helptext">{$form.f.remove_custom_avatar.help_text}</span></td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="separator">{trans "Key Management"}</td></tr>
|
||||
<tr>
|
||||
<th>{$form.f.public_key.labelTag}:</th>
|
||||
<td>{if $form.f.public_key.errors}{$form.f.public_key.fieldErrors}{/if}
|
||||
{$form.f.public_key|unsafe}<br />
|
||||
<span class="helptext">{$form.f.public_key.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td colspan="2" class="separator">{trans "Secondary Emails"}</td></tr>
|
||||
<tr>
|
||||
<th>{$form.f.secondary_mail.labelTag}:</th>
|
||||
<td>{if $form.f.secondary_mail.errors}{$form.f.secondary_mail.fieldErrors}{/if}
|
||||
{$form.f.secondary_mail|unsafe}<br />
|
||||
<span class="helptext">{$form.f.secondary_mail.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pass-info" id="extra-password">
|
||||
<th>{trans 'Extra password'}:</th>
|
||||
<td><span class="mono">{$ext_pass}</span><br />
|
||||
<span class="helptext">{trans 'This password is used to access some of the external systems managed by our infrastructure. It will be regenerated if you change your password.'}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr class="pass-info">
|
||||
<th>{trans 'API key'}:</th>
|
||||
<td><span class="mono">{$api_key}</span><br />
|
||||
<span class="helptext">{trans 'Your API key will be regenerated automatically if you change your password.'}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Update Your Account'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
{if count($keys)}
|
||||
<table summary=" " class="recent-issues">
|
||||
<tr><th colspan="2">{trans 'Your Current Public Keys'}</th></tr>
|
||||
{foreach $keys as $key}<tr><td>
|
||||
<span class="mono">{$key.showCompact()}</span></td><td> <form class="star" method="post" action="{url 'IDF_Views_User::deleteKey', array($key.id)}"><input type="image" src="{media '/idf/img/trash.png'}" name="submit" value="{trans 'Delete this key'}" /></form>
|
||||
</td>
|
||||
</tr>{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{if count($mailaddrs)>1}
|
||||
<table summary=" " class="recent-issues">
|
||||
<tr><th colspan="2">{trans 'Your additional email addresses'}</th></tr>
|
||||
{foreach $mailaddrs as $mail}{if $mail.id != -1}<tr><td>
|
||||
{$mail.address}</td><td> <form class="star" method="post" action="{url 'IDF_Views_User::deleteMail', array($mail.id)}"><input type="image" src="{media '/idf/img/trash.png'}" name="submit" value="{trans 'Delete this address'}" /></form>
|
||||
</td>
|
||||
</tr>{/if}{/foreach}
|
||||
</table>
|
||||
{/if}
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{trans 'If possible, use your real name. By using your real name, people will have more trust in your comments and remarks.'}</p>
|
||||
<p>{trans 'The extra password is used to access some of the external systems and the API key is used to interact with this website using a program.'}</p>
|
||||
</div>{/block}
|
||||
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_first_name').focus();
|
||||
{literal}
|
||||
$(document).ready(function() {
|
||||
// Hide the key password by default.
|
||||
$("#extra-password").before("{/literal}<tr id=\"form-block-0\"><td> </td><td><img style=\"vertical-align: text-bottom;\" src=\"{media '/idf/img/start.png'}\" alt=\" \" align=\"bottom\" /> <a id=\"form-show-0\" href=\"#\">{trans 'Show API key and extra password'}{literal}</a>.</td></tr>");
|
||||
$("#form-show-0").click(function(){
|
||||
$(".pass-info").show();
|
||||
$("#form-block-0").hide();
|
||||
return false;
|
||||
});
|
||||
$(".pass-info").hide();
|
||||
});{/literal}
|
||||
</script>
|
||||
{/block}
|
||||
|
39
indefero/src/IDF/templates/idf/user/passrecovery-ask.html
Normal file
39
indefero/src/IDF/templates/idf/user/passrecovery-ask.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oops, please check the provided login or email address to recover your password.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th><strong>{$form.f.account.labelTag}:</strong></th>
|
||||
<td>{if $form.f.account.errors}{$form.f.account.fieldErrors}{/if}
|
||||
{$form.f.account|unsafe}<br />
|
||||
<span class="helptext">{$form.f.account.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Recover My Password'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{trans 'Provide either your login or email address, if a corresponding user is found in the database, we will send you an email with the details on how to reset your password.'}</p>
|
||||
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_account').focus();
|
||||
</script>
|
||||
{/block}
|
||||
|
25
indefero/src/IDF/templates/idf/user/passrecovery-email.txt
Normal file
25
indefero/src/IDF/templates/idf/user/passrecovery-email.txt
Normal file
@@ -0,0 +1,25 @@
|
||||
{blocktrans}Hello {$user},
|
||||
|
||||
You lost your password and wanted to recover it.
|
||||
To provide a new password for your account, you
|
||||
just have to follow the provided link. You will
|
||||
get a simple form to provide a new password.
|
||||
|
||||
{$url}
|
||||
|
||||
Alternatively, go to this page:
|
||||
|
||||
{$urlik}
|
||||
|
||||
and provide the following verification key:
|
||||
|
||||
{$key}
|
||||
|
||||
If you are not the one who requested to reset
|
||||
your password, simply ignore this email, your
|
||||
password will not be changed.
|
||||
|
||||
Yours faithfully,
|
||||
The development team.
|
||||
{/blocktrans}
|
||||
|
@@ -0,0 +1,40 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oops, we found an error in the form.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><strong>{$form.f.key.labelTag}:</strong><br />
|
||||
{if $form.f.key.errors}{$form.f.key.fieldErrors}{/if}
|
||||
{$form.f.key|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Recover Your Password'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<h2>{trans 'Instructions'}</h2>
|
||||
<p>{trans 'Use your email software to read your emails and open your verification email. Either click directly on the verification link or copy/paste the verification key in the box and submit the form.'}</p>
|
||||
<p>{trans 'Just after providing the confirmation key, you will be able to reset your password and use this website fully.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_key').focus()
|
||||
</script>
|
||||
{/block}
|
||||
|
53
indefero/src/IDF/templates/idf/user/passrecovery.html
Normal file
53
indefero/src/IDF/templates/idf/user/passrecovery.html
Normal file
@@ -0,0 +1,53 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
{if $form.errors}
|
||||
<div class="px-message-error">
|
||||
<p>{trans 'Oops, please check the form for errors.'}</p>
|
||||
{if $form.get_top_errors}
|
||||
{$form.render_top_errors|unsafe}
|
||||
{/if}
|
||||
{if $form.f.key.errors}{$form.f.key.fieldErrors}{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post" action=".">
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th><strong>{trans 'Login:'}</strong></th>
|
||||
<td>{$new_user.login}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{trans 'Email:'}</strong></th>
|
||||
<td>{$new_user.email}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.password.labelTag}:</strong></th>
|
||||
<td>{if $form.f.password.errors}{$form.f.password.fieldErrors}{/if}
|
||||
{$form.f.password|unsafe}<br />
|
||||
<span class="helptext">{$form.f.password.help_text}</span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><strong>{$form.f.password2.labelTag}:</strong></th>
|
||||
<td>{if $form.f.password2.errors}{$form.f.password2.fieldErrors}{/if}
|
||||
{$form.f.password2|unsafe}
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td> </td>
|
||||
<td><input type="submit" value="{trans 'Reset Your Password'}" name="submit" /> | <a href="{url 'IDF_Views::index'}">{trans 'Cancel'}</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>{$form.f.key|unsafe}
|
||||
</form>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{trans 'This is the last step, but just <strong>be sure to have the cookies enabled</strong> to log in afterwards.'}</p>
|
||||
</div>
|
||||
{/block}
|
||||
{block javascript}<script type="text/javascript">
|
||||
document.getElementById('id_password').focus()
|
||||
</script>
|
||||
{/block}
|
||||
|
66
indefero/src/IDF/templates/idf/user/public.html
Normal file
66
indefero/src/IDF/templates/idf/user/public.html
Normal file
@@ -0,0 +1,66 @@
|
||||
{extends "idf/base-simple.html"}
|
||||
{block body}
|
||||
<table class="form" summary="">
|
||||
<tr>
|
||||
<th style="text-align: right">{if $user_data.avatar != ''}
|
||||
<img style="max-height: 60px; max-width: 60px;" src="{upload}/avatars/{$user_data.avatar}" alt=" " />
|
||||
{else}
|
||||
<img src="http://www.gravatar.com/avatar/{$member.email|md5}.jpg?s=60&d={media}/idf/img/spacer.gif" alt=" " />
|
||||
{/if}
|
||||
</th>
|
||||
<td>{$member}</td>
|
||||
</tr>
|
||||
{if $user_data.description != ''}
|
||||
<tr>
|
||||
<th>{trans 'Description:'}</th>
|
||||
<td>{$user_data.description}</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $user_data.twitter != ''}
|
||||
<tr>
|
||||
<th>{trans 'Twitter:'}</th>
|
||||
<td><a rel="nofollow" target="_blank" href='http://twitter.com/{$user_data.twitter}'>{$user_data.twitter}</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $user_data.public_email != ''}
|
||||
<tr>
|
||||
<th>{trans 'Public Email:'}</th>
|
||||
<td><a href='mailto:{$user_data.public_email}'>{$user_data.public_email}</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
{if $user_data.website != ''}
|
||||
<tr>
|
||||
<th>{trans 'Website:'}</th>
|
||||
<td><a rel="nofollow" target="_blank" href='{$user_data.website}'>{$user_data.website}</a></td>
|
||||
</tr>
|
||||
{/if}
|
||||
|
||||
<tr>
|
||||
<th>{trans 'Last time seen:'}</th>
|
||||
<td>{$member.last_login|dateago}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{trans 'Member since:'}</th>
|
||||
<td>{$member.date_joined|date}</td>
|
||||
</tr>
|
||||
</table>
|
||||
Projects:
|
||||
<table class="form">
|
||||
{foreach $projects as $p}
|
||||
{if $p.private == 0}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{url 'IDF_Views_Project::home', array($p.name)}">{$p.name} - {$p.shortdesc}</a>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</table>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="issue-submit-info">
|
||||
<p>{blocktrans}You are looking at the public profile of {$member}.{/blocktrans}</p>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
|
Reference in New Issue
Block a user