summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-01-26 19:02:19 +0100
committerYorhel <git@yorhel.nl>2010-01-26 19:29:00 +0100
commit5f5306216268e2bc97f7dccee24a9a8152553890 (patch)
tree8d273ee2ec55fd89f83a1dc5d47c1926284d9596 /data
parent363d4750f04806775513371b027f9460609eab1a (diff)
Made a start on the notification system
The current setup should be able to handle all kinds of notifications, though only PMs are implemented at this point. More to come.
Diffstat (limited to 'data')
-rw-r--r--data/lang.txt90
-rw-r--r--data/script.js14
-rw-r--r--data/style.css10
3 files changed, 109 insertions, 5 deletions
diff --git a/data/lang.txt b/data/lang.txt
index 624cb916..a986a3b7 100644
--- a/data/lang.txt
+++ b/data/lang.txt
@@ -1430,11 +1430,11 @@ cs : Můj wishlist
hu : Kivánságlistám
# [_1] = number of messages
-:_menu_mymessages
-en : My Messages ([_1])
-ru : Мои сообщения ([_1])
-cs : Mé zprávy ([_1])
-hu : Üzenenteim ([_1])
+:_menu_mynotifications
+en : My Notifications ([_1])
+ru*: Мои сообщения ([_1])
+cs*: Mé zprávy ([_1])
+hu*: Üzenenteim ([_1])
:_menu_mychanges
en : My Recent Changes
@@ -4623,6 +4623,86 @@ cs : Tagy
hu : Címkék
+# Notifications (/u+/notifies)
+
+:_usern_title
+en : My notifications
+ru*:
+cs*:
+hu*:
+
+:_usern_o_unread
+en : Unread notifications
+ru*:
+cs*:
+hu*:
+
+:_usern_o_alsoread
+en : All notifications
+ru*:
+cs*:
+hu*:
+
+:_usern_nonotifies
+en : No notifications!
+ru*:
+cs*:
+hu*:
+
+:_usern_col_type
+en : Type
+ru*:
+cs*:
+hu*:
+
+:_usern_col_age
+en : Age
+ru*:
+cs*:
+hu*:
+
+:_usern_col_id
+en : ID
+ru*:
+cs*:
+hu*:
+
+:_usern_col_desc
+en : Description
+ru*:
+cs*:
+hu*:
+
+:_usern_type_pm
+en : PM
+ru*:
+cs*:
+hu*:
+
+:_usern_n_t_new
+en : New thread [_1] by [_2]
+ru*:
+cs*:
+hu*:
+
+:_usern_n_t_reply
+en : Reply to [_1] by [_2]
+ru*:
+cs*:
+hu*:
+
+:_usern_but_markread
+en : mark selected read
+ru*:
+cs*:
+hu*:
+
+:_usern_but_remove
+en : remove selected
+ru*:
+cs*:
+hu*:
+
#############################################################################
diff --git a/data/script.js b/data/script.js
index 251f0921..bd4dd144 100644
--- a/data/script.js
+++ b/data/script.js
@@ -1959,6 +1959,20 @@ if(byId('lang_select')) {
d.onclick = function() {return false};
}
+// "check all" checkbox
+{
+ var f = function() {
+ var l = byName('input');
+ for(var i=0; i<l.length; i++)
+ if(l[i].type == this.type && l[i].name == this.name)
+ l[i].checked = this.checked;
+ };
+ var l = byClass('input', 'checkall');
+ for(var i=0; i<l.length; i++)
+ if(l[i].type == 'checkbox')
+ l[i].onclick = f;
+}
+
// spam protection on all forms
setTimeout(function() {
for(i=1; i<document.forms.length; i++)
diff --git a/data/style.css b/data/style.css
index 654701a0..14672ccf 100644
--- a/data/style.css
+++ b/data/style.css
@@ -943,6 +943,16 @@ div.scr_uploader { visibility: hidden; overflow: hidden; width: 1px; height: 1px
.browse.rlist .relhid .tc4 { text-align: right }
+/***** User notifications *****/
+
+.browse.notifies td.tc1 { width: 14px }
+.browse.notifies td.tc3 { width: 90px }
+.browse.notifies td.tc4 { width: 60px }
+.browse.notifies tbody td.tc5 { color: $grayedout$ }
+.browse.notifies td.tc5 i { font-style: normal; color: $maintext$ }
+.browse.notifies .unread td { font-weight: bold }
+.browse.notifies tfoot td { padding: 0 0 0 25px }
+
/***** Userpage *****/