Skip to content

Commit

Permalink
added link on ViewProfile.html to EditProfile_p.html to make it easie…
Browse files Browse the repository at this point in the history
…r 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
  • Loading branch information
orbiter committed Jan 31, 2011
1 parent 982aa68 commit fe948ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions htroot/ViewProfile.html
Expand Up @@ -63,6 +63,9 @@ <h3>This is the Profile of #[peername]#:</h3>
#(/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%#
::
Expand Down
1 change: 1 addition & 0 deletions htroot/ViewProfile.java
Expand Up @@ -61,6 +61,7 @@ public static serverObjects respond(final RequestHeader header, final serverObje
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)) {
Expand Down

0 comments on commit fe948ab

Please sign in to comment.