aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-28 21:02:36 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-28 21:02:36 -0700
commitd8d6f9adbd8a88d5db77dbdee07d7210651620bc (patch)
tree174c8be2bc838f88dc1e8ac61b448ee095389bb3
parent8aeb1976b86674d6072c587b213131e253365ad5 (diff)
downloadvolse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.tar.gz
volse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.tar.bz2
volse-hubzilla-d8d6f9adbd8a88d5db77dbdee07d7210651620bc.zip
profile editor cleanups
-rw-r--r--mod/profile.php7
-rw-r--r--view/profile_edit.tpl16
-rw-r--r--view/style.css9
3 files changed, 25 insertions, 7 deletions
diff --git a/mod/profile.php b/mod/profile.php
index b63ec7250..07c5357ff 100644
--- a/mod/profile.php
+++ b/mod/profile.php
@@ -57,7 +57,12 @@ function profile_init(&$a) {
unset($_SESSION['authenticated']);
}
- profile_load($a,$which);
+ $profile = 0;
+ if((local_user()) && ($a->argc > 2) && ($a->argv[2] == 'view')) {
+ $which = $a->user['nickname'];
+ $profile = $a->argv[1];
+ }
+ profile_load($a,$which,$profile);
$a->page['htmlhead'] .= "<meta name=\"dfrn-template\" content=\"" . $a->get_baseurl() . "/profile/%s" . "\" />\r\n";
$dfrn_pages = array('request', 'confirm', 'notify', 'poll');
diff --git a/view/profile_edit.tpl b/view/profile_edit.tpl
index 20b9a0993..44ca3922b 100644
--- a/view/profile_edit.tpl
+++ b/view/profile_edit.tpl
@@ -1,8 +1,14 @@
<h1>Edit Profile Details</h1>
-<div id="profile-edit-clone-link-wrapper" ><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></div>
+<div id="profile-edit-links">
+<ul>
+<li><a href="profile/$profile_id/view" id="profile-edit-view-link" title="View this profile">View this profile</a></li>
+<li><a href="profiles/clone/$profile_id" id="profile-edit-clone-link" title="Create a new profile using these settings">Clone this profile</a></li>
+<li></li>
+<li><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></li>
-<div id="profile-edit-drop-link-wrapper" ><a href="profiles/drop/$profile_id" id="profile-edit-drop-link" title="Delete this profile" $disabled >Delete this profile</a></div>
+</ul>
+</div>
<div id="profile-edit-links-end"></div>
@@ -36,6 +42,8 @@ $dob $age
</div>
<div id="profile-edit-dob-end"></div>
+$profile_in_dir
+
$hide_friends
<div class="profile-edit-submit-wrapper" >
@@ -118,10 +126,6 @@ $sexual
</div>
<div id="profile-edit-religion-end"></div>
-
-$profile_in_dir
-
-
<div class="profile-edit-submit-wrapper" >
<input type="submit" name="submit" class="profile-edit-submit-button" value="Submit" />
</div>
diff --git a/view/style.css b/view/style.css
index fa0f948bb..8b67be08c 100644
--- a/view/style.css
+++ b/view/style.css
@@ -300,10 +300,19 @@ input#dfrn-url {
list-style-type: none;
}
+
#profile-extra-links li {
margin-top: 5px;
}
+#profile-edit-links ul {
+ list-style-type: none;
+}
+
+#profile-edit-links li {
+ margin-top: 10px;
+}
+
.view-contact-wrapper {
margin-top: 20px;
float: left;