aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-07-28 18:24:07 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-07-28 18:24:07 -0700
commit050be990349b75f38095242347b2e13b9bb579f7 (patch)
tree5fdb291b331114969d2be7351a34ad955762459d /view
parent7feed93a560182d80a5305650b016bc1b2db7542 (diff)
downloadvolse-hubzilla-050be990349b75f38095242347b2e13b9bb579f7.tar.gz
volse-hubzilla-050be990349b75f38095242347b2e13b9bb579f7.tar.bz2
volse-hubzilla-050be990349b75f38095242347b2e13b9bb579f7.zip
added friend viewer
Diffstat (limited to 'view')
-rw-r--r--view/contact_edit.tpl2
-rw-r--r--view/profile.php5
-rw-r--r--view/style.css36
-rw-r--r--view/viewcontact_template.tpl15
4 files changed, 57 insertions, 1 deletions
diff --git a/view/contact_edit.tpl b/view/contact_edit.tpl
index e1cffc460..dbcc3fd71 100644
--- a/view/contact_edit.tpl
+++ b/view/contact_edit.tpl
@@ -18,6 +18,8 @@
<div id="contact-edit-links" >
<a href="contacts/$contact_id/block" id="contact-edit-block-link" ><img src="images/b_block.gif" alt="Block/Unblock contact" title="$block_text"/></a>
<a href="contacts/$contact_id/ignore" id="contact-edit-ignore-link" ><img src="images/no.gif" alt="Ignore contact" title="$ignore_text"/></a>
+ </div>
+ <div id="contact-drop-links" >
<a href="contacts/$contact_id/drop" id="contact-edit-drop-link" onclick="return confirmDelete();" ><img src="images/b_drophide.gif" alt="Delete contact" title="Delete contact" onmouseover="imgbright(this);" onmouseout="imgdull(this);" /></a>
</div>
<div id="contact-edit-nav-end"></div>
diff --git a/view/profile.php b/view/profile.php
index e8de331e1..8ec9ab599 100644
--- a/view/profile.php
+++ b/view/profile.php
@@ -19,8 +19,11 @@
<?php } ?>
<div id="profile-extra-links">
+ <ul>
+ <li><a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['nickname']; ?>">Introductions</a></li>
+ <?php if(! $profile['hide-friends']) echo '<li><a id="viewcontacts-link" href="viewcontacts/' . $profile['nickname'] . '">View Contacts</a></li>'; ?>
- <a id="dfrn-request-link" href="dfrn_request/<?php echo $profile['nickname']; ?>">Introductions</a>
+ </ul>
</div>
diff --git a/view/style.css b/view/style.css
index 740ca13f6..f8c483a89 100644
--- a/view/style.css
+++ b/view/style.css
@@ -295,6 +295,26 @@ input#dfrn-url {
clear: both;
margin-bottom: 30px;
}
+
+#profile-extra-links ul {
+ list-style-type: none;
+}
+
+#profile-extra-links li {
+ margin-top: 5px;
+}
+
+.view-contact-wrapper {
+ margin-top: 20px;
+ float: left;
+ margin-left: 20px;
+ width: 180px;
+}
+#view-contact-end {
+ clear: both;
+}
+
+
#profile-edit-default-desc {
color: #FF0000;
border: 1px solid #FF8888;
@@ -815,11 +835,27 @@ input#dfrn-url {
#contact-edit-photo-wrapper {
margin-bottom: 20px;
}
+#contact-edit-links {
+ float: left;
+}
#contact-edit-links img {
margin-left: 20px;
border: none;
}
+#contact-drop-links {
+ float: left;
+}
+
+#contact-drop-links img {
+ margin-left: 20px;
+ border: none;
+}
+
+#contact-edit-nav-end {
+ clear: both;
+}
+
#contact-edit-direction-icon {
float: left;
margin-top: 70px;
diff --git a/view/viewcontact_template.tpl b/view/viewcontact_template.tpl
new file mode 100644
index 000000000..3436a5c45
--- /dev/null
+++ b/view/viewcontact_template.tpl
@@ -0,0 +1,15 @@
+
+<div class="view-contact-wrapper" id="view-contact-wrapper-$id" >
+ <div class="view-contact-photo-wrapper" >
+ <div class="view-contact-photo" id="view-contact-photo-$id" >
+ <a href="$url" title="$alt_text" /><img src="$thumb" alt="$name" /></a>
+ </div>
+ <div class="view-contact-photo-end" ></div>
+ </div>
+ <div class="view-contact-name-wrapper" >
+ <div class="view-contact-name" id="view-contact-name-$id" >$name</div>
+ </div>
+ <div class="view-contact-name-end" ></div>
+</div>
+<div class="view-contact-wrapper-end"></div>
+