aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-08-01 05:46:51 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-08-01 05:46:51 -0700
commit3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e (patch)
tree641803dc59dcd8440e252e5133424fde2a835636 /view
parenta4a46d82df14d5bcc6812a8e2b9f24eb78141e4e (diff)
downloadvolse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.gz
volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.tar.bz2
volse-hubzilla-3fd4b4264ef8c418bbf78edaa02f7e4e32f5022e.zip
set frequency of poll per contact, other misc fixes (photo now has contact-id)
Diffstat (limited to 'view')
-rw-r--r--view/contact_edit.tpl5
-rw-r--r--view/contact_selectors.php32
-rw-r--r--view/style.css10
3 files changed, 40 insertions, 7 deletions
diff --git a/view/contact_edit.tpl b/view/contact_edit.tpl
index 6f1dbbc7c..a049c232f 100644
--- a/view/contact_edit.tpl
+++ b/view/contact_edit.tpl
@@ -23,6 +23,11 @@
<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>
+ <div id="contact-edit-poll-wrapper">
+ <div id="contact-edit-last-update-text">Last updated: <span id="contact-edit-last-updated">$last_update</span</div>
+ <div id="contact-edit-poll-text">Update public posts: </div>
+ $poll_interval
+ </div>
</div>
<div id="contact-edit-end" ></div>
diff --git a/view/contact_selectors.php b/view/contact_selectors.php
index a6cafe4ee..7c7abfc7c 100644
--- a/view/contact_selectors.php
+++ b/view/contact_selectors.php
@@ -26,12 +26,12 @@ function contact_reputation($current) {
$o .= "<select id=\"contact-reputation-selector\" name=\"reputation\" />\r\n";
$rep = array(
- 0 => "Unknown | Not categorised",
- 1 => "Block immediately",
- 2 => "Shady, spammer, self-marketer",
- 3 => "Known to me, but no opinion",
- 4 => "OK, probably harmless",
- 5 => "Reputable, has my trust"
+ 0 => t('Unknown | Not categorised'),
+ 1 => t('Block immediately'),
+ 2 => t('Shady, spammer, self-marketer'),
+ 3 => t('Known to me, but no opinion'),
+ 4 => t('OK, probably harmless'),
+ 5 => t('Reputable, has my trust')
);
foreach($rep as $k => $v) {
@@ -43,4 +43,24 @@ function contact_reputation($current) {
}
+function contact_poll_interval($current) {
+ $o = '';
+ $o .= '<select id="contact-poll-interval" name="poll" />' . "\r\n";
+
+ $rep = array(
+ 0 => t('Frequently'),
+ 1 => t('Hourly'),
+ 2 => t('Twice daily'),
+ 3 => t('Daily'),
+ 4 => t('Weekly'),
+ 5 => t('Monthly')
+ );
+
+ foreach($rep as $k => $v) {
+ $selected = (($k == $current) ? " selected=\"selected\" " : "");
+ $o .= "<option value=\"$k\" $selected >$v</option>\r\n";
+ }
+ $o .= "</select>\r\n";
+ return $o;
+}
diff --git a/view/style.css b/view/style.css
index 0d3b6b29d..c7b46a830 100644
--- a/view/style.css
+++ b/view/style.css
@@ -16,7 +16,7 @@ body {
background: #FEFEFE;
color: #444444;
font-family: "Lucida Grande", Tahoma, sans-serif;
- letter-spacing: 1px;
+/* letter-spacing: 1px; */
/* font-family: verdana, sans-serif; */
font-size: 90%;
margin-left: 10px;
@@ -880,6 +880,14 @@ input#dfrn-url {
margin-left: 30px;
}
+#contact-edit-poll-wrapper {
+ margin-left: 50px;
+ margin-top: 30px;
+}
+#contact-edit-poll-text {
+ margin-bottom: 10px;
+}
+
#contact-edit-photo-wrapper {
margin-bottom: 20px;
}