# HG changeset patch
# User Christophe Lincoln
# Date 1301517238 -7200
# Node ID 0e91bc735875791df5f5a90f4728309ecda0e567
# Parent 482a0e54ae168e95cf4a079341694137589bbf3c
people: improve main page and add profile.php info
diff -r 482a0e54ae16 -r 0e91bc735875 people/index.php
--- a/people/index.php Mon Mar 28 15:18:40 2011 +0200
+++ b/people/index.php Wed Mar 30 22:33:58 2011 +0200
@@ -51,7 +51,7 @@
code name Tank, can
have a public directory to put personal stuff related to SliTaz.
This Public directory can be reached with URLs in the form of:
- http://people.slitaz.org/~contributors/. More information on
+ http://people.slitaz.org/~name/. More information on
SliTaz Website and
SliTaz Labs.
@@ -63,16 +63,48 @@
SliTaz people
+
+
$user\n";
+ echo " - $user\n";
+ if (file_exists("$pub/profile.php")) {
+ require_once("$pub/profile.php");
+ echo "Name: $name";
+ if (! empty($location)) {
+ echo " | Location: $location";
+ }
+ if (! empty($scn_user)) {
+ echo " | SCN activity";
+ }
+ if (! empty($skills)) {
+ echo " | Skills: $skills";
+ }
+ echo "";
+ if (! empty($wall)) {
+ echo "$wall";
+ }
+ }
+ echo "
";
}
+
}
}
closedir($handle);
diff -r 482a0e54ae16 -r 0e91bc735875 people/profile.php
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/people/profile.php Wed Mar 30 22:33:58 2011 +0200
@@ -0,0 +1,13 @@
+
diff -r 482a0e54ae16 -r 0e91bc735875 people/slitaz.css
--- a/people/slitaz.css Mon Mar 28 15:18:40 2011 +0200
+++ b/people/slitaz.css Wed Mar 30 22:33:58 2011 +0200
@@ -152,16 +152,16 @@
text-align: justify;
}
-#news li {
+.news li {
list-style-type: square;
border-bottom: 1px dotted #BEBEBE;
margin-left: -25px;
padding: 4px 0px 4px 0px;
}
-#news a, .feed-grid a { text-decoration: none; }
-#news p a { text-decoration: underline; }
-#news p a:hover { text-decoration: none; }
+.news a, .feed-grid a { text-decoration: none; }
+.news p a { text-decoration: underline; }
+.news p a:hover { text-decoration: none; }
#twitter { margin: 20px 0; }
#gallery { text-align: center; }
@@ -185,15 +185,28 @@
border: 1px solid #ddd;
}
-.feed-grid { height: 180px; overflow: hidden; text-align: left; }
-.feed-grid h3 {
- margin: 15px 0 0; font-size: 16px;
- padding: 0 22px;
- background: url(images/feed.png) no-repeat left; }
-.feed-grid span { font-size: 10px; color: #888; margin-left: 24px; }
-.feed-grid ul { color: #666; }
-.feed-grid a { color: #666; }
-.feed-grid a:hover { color: blue; }
+/* Activity Box */
+
+.activity {
+ margin: 0 0 20px;
+ background: #eaeaea;
+ padding: 5px 2px 0;
+ border: 1px solid #ddd;
+}
+.activity div { padding: 5px 10px; background: #fff; margin-top: 5px; }
+.activity p { margin: 0; padding: 5px 10px; font-weight: bold; }
+.activity a { text-decoration: none; }
+.activity ul { list-style-type: none;
+ margin: 4px 0; padding: 0 4px; line-height: 150%; }
+.activity_more { text-align: right; }
+.activity_more a { font-weight: normal; color: #000; padding: 0 4px; }
+.activity_more a:hover { text-decoration: underline; }
+
+.activity span, .news span {
+ color: #666;
+ font-size: 11px;
+ font-weight: normal;
+}
/* Button */
@@ -213,7 +226,8 @@
/* Round corner */
-#block_nav, pre, .box, .searchbox, .button a, #twitter {
+#block_nav, pre, .box, .searchbox, .button a, #twitter, .activity,
+.activity div {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
diff -r 482a0e54ae16 -r 0e91bc735875 tank/files/var/spool/cron/crontabs/root
--- a/tank/files/var/spool/cron/crontabs/root Mon Mar 28 15:18:40 2011 +0200
+++ b/tank/files/var/spool/cron/crontabs/root Wed Mar 30 22:33:58 2011 +0200
@@ -9,6 +9,7 @@
# Update SliTaz stuff
15 02 * * * /usr/bin/tazdev update-www
+*/20 * * * * /home/slitaz/www/website/libs/get-latest.sh
20 02 * * * /usr/bin/tazpkg-web cooking
30 02 * * * /usr/bin/tazpkg-web stable