Add link to full profile from default profile view, and vice versa.
Patch by yvi.
diffs (33 lines):
diff -r 712a215e4459 -r 491eaf27c733 htdocs/userinfo.bml
--- a/htdocs/userinfo.bml Thu Sep 24 18:16:29 2009 +0000
+++ b/htdocs/userinfo.bml Thu Sep 24 21:01:08 2009 -0500
@@ -416,6 +416,15 @@ body<=
# other statistics
$ret .= q{ <p> };
$ret .= join( ', ', ( $profile->entry_stats, $profile->tag_stats,
$profile->memory_stats, $profile->userpic_stats ) );
+ $ret .= "</p>";
+
+ #extended profile link
+ $ret .= "<p>";
+ if ( $is_full ) {
+ $ret .= BML::ml( '.details.profile.default', { aopts => "href='" .
$u->profile_url . "'" } );
+ } else {
+ $ret .= BML::ml( '.details.profile.full', { aopts => "href='" .
$u->profile_url . "?mode=full'" } );
+ }
$ret .= q{ </p></div></div></div></div> };
################################################################################
diff -r 712a215e4459 -r 491eaf27c733 htdocs/userinfo.bml.text
--- a/htdocs/userinfo.bml.text Thu Sep 24 18:16:29 2009 +0000
+++ b/htdocs/userinfo.bml.text Thu Sep 24 21:01:08 2009 -0500
@@ -109,6 +109,10 @@
.details.memories=[[num]] <a [[aopts]]>[[?num|Memory|Memories]]</a>
.details.memories2=[[num_comma]] <a [[aopts]]>[[?num_raw|Memory|Memories]]</a>
+
+.details.profile.default=<a [[aopts]]>View default profile</a>
+
+.details.profile.full=<a [[aopts]]>View extended profile</a>
.details.search=Search
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog