added link on ViewProfile.html to EditProfile_p.html to make it easier to customize the peer

the link appears only if the user has admin rights

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7459 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2011-01-31 19:55:00 +00:00
parent 982aa689ef
commit fe948abd84
2 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,9 @@
#(/success)#
<p>View this profile as <a rel="meta" type="application/rdf+xml" title="rdf:foaf" href="ViewProfile.rdf?hash=#[hash]#">rdf:foaf</a> or
<a rel="alternate" type="text/x-vcard" title="vCard" href="ViewProfile.vcf?hash=#[hash]#">vCard</a></p>
#(edit)#::
<p>You can edit your profile <a href="/ConfigProfile_p.html">here</a></p>
#(/edit)#
#(display)#
#%env/templates/simplefooter.template%#
::

View File

@ -61,6 +61,7 @@ public class ViewProfile {
final boolean authenticated = sb.adminAuthenticated(header) >= 2;
final int display = ((post == null) || (!authenticated)) ? 0 : post.getInt("display", 0);
prop.put("display", display);
prop.put("edit", authenticated ? 1 : 0);
final String hash = (post == null) ? null : post.get("hash");
if ((hash == null) || (sb.peers == null)) {