From jens at mail.se.linux.org  Fri Nov 14 17:40:46 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Fri, 14 Nov 2008 17:40:46 +0100
Subject: [commits] r205 - in
	selinux-site/trunk/selinux.theme/selinux/theme/skins:
	selinux_styles selinux_templates
Message-ID: <E1L11iw-0001Pq-NH@mail.se.linux.org>

Author: jens
Date: 2008-11-14 17:40:46 +0100 (Fri, 14 Nov 2008)
New Revision: 205

Modified:
   selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml
   selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
Log:
Skriv inte ut hela nyheten utan bara intron samt ?\195?\164ndra design p?\195?\165 documentByLine och h3



Modified: selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml	2008-10-31 19:22:23 UTC (rev 204)
+++ selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml	2008-11-14 16:40:46 UTC (rev 205)
@@ -49,6 +49,11 @@
        font-size: 175%;
 }
 
+h3 {
+       font-size: 140%;
+}
+
+
 #portal-siteactions {
     float: left;
     clear: none;
@@ -209,6 +214,14 @@
 	border-bottom: 0px solid #CCCCCC;
 }
 
+.documentByLine {
+        color: Black;
+        font-weight: normal;
+        font-size: 90%;
+        font-style: italic;
+        margin-bottom: 0.5em;
+}
+
 #selinux_intro p {
 	padding: 5px;
 	border: 1px solid #F2C92F;

Modified: selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-10-31 19:22:23 UTC (rev 204)
+++ selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-11-14 16:40:46 UTC (rev 205)
@@ -53,21 +53,11 @@
 
     <div id="selinux_intro">
 	<p>Svenska Linuxf&ouml;reningen &auml;r en f&ouml;rening f&ouml;r alla som &auml;r intresserade av fri programvara och &ouml;ppen 
-	k&auml;llkod s&aring;som till exempel GNU/Linux, FreeBSD, Apache och MySQL. F&ouml;reningen best&aring;r av en jävla massa medlemmar &ouml;ver 
+	k&auml;llkod s&aring;som till exempel GNU/Linux, FreeBSD, Apache och MySQL. F&ouml;reningen best&aring;r av n&auml;rmare 5000 medlemmar &ouml;ver 
 	hela landet och det &auml;r dessa som st&aring;r f&ouml;r f&ouml;reningens aktiviteter samt artiklar, nyheter och annat p&aring; 
 	webbplatsen.</p>
     </div>
 
-<!--
-	<div id="moblin">
-
-<iframe src ="http://moblin.ihvweb.com/index.php/moblin/index/Brazil" width="100%" height="500" frameborder="0">Din webbl&auml;sare hanterar inte frames. 
-Bes&ouml;k <a href="http://moblin.ihvweb.com/index.php/moblin/index/Brazil">http://moblin.ihvweb.com/index.php/moblin/index/Brazil</a> f&ouml;r att se 
-t&auml;vlingen.</iframe>
-
-	</div>
--->
-
     <h2>Nyheter</h2>
 
     <p id="contributeNews">
@@ -85,14 +75,12 @@
     <div class="newsbox" tal:repeat="newsitem frontpage/news">
         <h3 tal:content="newsitem/title" />
         <div class="documentByLine">
-            av
+            Publicerades <span tal:replace="newsitem/date" /> av
             <a href="#"
                tal:attributes="href string:${portal_url}/author/${newsitem/author_id}"
                tal:content="newsitem/author" />
-            &mdash;
-            <span tal:replace="newsitem/date" />
         </div>
-        <p tal:replace="structure newsitem/body" />
+        <p tal:replace="structure newsitem/description" />
         <div>
             <a href="" tal:attributes="href newsitem/url">
                 L&auml;s mer...



From jens at mail.se.linux.org  Fri Nov 14 17:41:06 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Fri, 14 Nov 2008 17:41:06 +0100
Subject: [commits] r206 -
	selinux-site/trunk/selinux.policy/selinux/policy/browser
Message-ID: <E1L11jG-0001QL-Jf@mail.se.linux.org>

Author: jens
Date: 2008-11-14 17:41:06 +0100 (Fri, 14 Nov 2008)
New Revision: 206

Modified:
   selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
Log:
Skriv ut description ist?\195?\164llet f?\195?\182r body p?\195?\165 framsidan



Modified: selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
===================================================================
--- selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-14 16:40:46 UTC (rev 205)
+++ selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-14 16:41:06 UTC (rev 206)
@@ -40,7 +40,7 @@
                          'author': author_name,
                          'author_id': brain.Creator,
                          'date': modified,
-                         'body': brain.getObject().getText(),
+                         'description': brain.Description,
                          'url': brain.getURL(),
                          'discussion_count': 0,
                          'discussion_url': 'hoho' }



From jens at mail.se.linux.org  Sat Nov 15 18:59:02 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Sat, 15 Nov 2008 18:59:02 +0100
Subject: [commits] r207 - in
	selinux-site/trunk/selinux.theme/selinux/theme/skins:
	selinux_styles selinux_templates
Message-ID: <E1L1PQE-0002SU-A9@mail.se.linux.org>

Author: jens
Date: 2008-11-15 18:59:01 +0100 (Sat, 15 Nov 2008)
New Revision: 207

Modified:
   selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml
   selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
Log:
Klickbar rubrik utan understrykning samt f?\195?\182rhoppningsvis skrivs det nu ut exakt hur m?\195?\165nga medlemmar det ?\195?\164r.



Modified: selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml	2008-11-14 16:41:06 UTC (rev 206)
+++ selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_styles/ploneCustom.css.dtml	2008-11-15 17:59:01 UTC (rev 207)
@@ -46,7 +46,8 @@
 }
 
 h2 {
-       font-size: 175%;
+	font-size: 180%;
+	font-weight: bold;
 }
 
 h3 {
@@ -228,6 +229,10 @@
 	font-style: italic;	
 }
 	
+.newsheader {
+	text-decoration: none;
+}
+
 /*
 .newsbox {
     width: 40em;

Modified: selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-11-14 16:41:06 UTC (rev 206)
+++ selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-11-15 17:59:01 UTC (rev 207)
@@ -9,7 +9,8 @@
 <body>
 
 <div metal:fill-slot="main"
-     tal:define="frontpage context/@@frontpage">
+     tal:define="frontpage context/@@frontpage;
+		 intro frontpage/intro">
 
    <div id="frontpageLinks">
         <dl>
@@ -52,11 +53,16 @@
     </div>
 
     <div id="selinux_intro">
-	<p>Svenska Linuxf&ouml;reningen &auml;r en f&ouml;rening f&ouml;r alla som &auml;r intresserade av fri programvara och &ouml;ppen 
-	k&auml;llkod s&aring;som till exempel GNU/Linux, FreeBSD, Apache och MySQL. F&ouml;reningen best&aring;r av n&auml;rmare 5000 medlemmar &ouml;ver 
-	hela landet och det &auml;r dessa som st&aring;r f&ouml;r f&ouml;reningens aktiviteter samt artiklar, nyheter och annat p&aring; 
-	webbplatsen.</p>
+	<p tal:condition="intro" tal:content="intro">
+	Text read from introdoc in SITEROOT.
+	</p>
     </div>
+    <div id="selinux_intro" tal:condition="not: intro">
+	<p>Svenska Linuxf&ouml;reningen &auml;r en f&ouml;rening f&ouml;r alla som &auml;r intresserade av fri programvara och &ouml;ppen
+        k&auml;llkod s&aring;som till exempel GNU/Linux, FreeBSD, Apache och MySQL. F&ouml;reningen best&aring;r av drygt 5000 medlemmar &ouml;ver
+        hela landet och det &auml;r dessa som st&aring;r f&ouml;r f&ouml;reningens aktiviteter samt artiklar, nyheter och annat p&aring;
+        webbplatsen.</p>
+    </div>
 
     <h2>Nyheter</h2>
 
@@ -73,7 +79,7 @@
     <div class="visualClear"> <!-- &nbsp; --> </div>
 
     <div class="newsbox" tal:repeat="newsitem frontpage/news">
-        <h3 tal:content="newsitem/title" />
+        <a href="" tal:attributes="href newsitem/url" class="newsheader"><h3 tal:content="newsitem/title" /></a>
         <div class="documentByLine">
             Publicerades <span tal:replace="newsitem/date" /> av
             <a href="#"



From jens at mail.se.linux.org  Sun Nov 16 10:53:35 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Sun, 16 Nov 2008 10:53:35 +0100
Subject: [commits] r208 -
	selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates
Message-ID: <E1L1eJz-0005Sl-M9@mail.se.linux.org>

Author: jens
Date: 2008-11-16 10:53:35 +0100 (Sun, 16 Nov 2008)
New Revision: 208

Modified:
   selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
Log:
Senast ?\195?\164ndrad


Modified: selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt
===================================================================
--- selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-11-15 17:59:01 UTC (rev 207)
+++ selinux-site/trunk/selinux.theme/selinux/theme/skins/selinux_templates/selinux_index.pt	2008-11-16 09:53:35 UTC (rev 208)
@@ -81,10 +81,11 @@
     <div class="newsbox" tal:repeat="newsitem frontpage/news">
         <a href="" tal:attributes="href newsitem/url" class="newsheader"><h3 tal:content="newsitem/title" /></a>
         <div class="documentByLine">
-            Publicerades <span tal:replace="newsitem/date" /> av
+            Publicerades <span tal:replace="newsitem/date_created" /> av
             <a href="#"
                tal:attributes="href string:${portal_url}/author/${newsitem/author_id}"
                tal:content="newsitem/author" />
+		&mdash; Senast &auml;ndrad <span tal:replace="newsitem/date_modified" />
         </div>
         <p tal:replace="structure newsitem/description" />
         <div>



From jens at mail.se.linux.org  Sun Nov 16 10:54:06 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Sun, 16 Nov 2008 10:54:06 +0100
Subject: [commits] r209 -
	selinux-site/trunk/selinux.policy/selinux/policy/browser
Message-ID: <E1L1eKU-0005T0-B6@mail.se.linux.org>

Author: jens
Date: 2008-11-16 10:54:06 +0100 (Sun, 16 Nov 2008)
New Revision: 209

Modified:
   selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
Log:
Senast ?\195?\164ndrad


Modified: selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
===================================================================
--- selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-16 09:53:35 UTC (rev 208)
+++ selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-16 09:54:06 UTC (rev 209)
@@ -36,10 +36,15 @@
                                                   True, self.context,
                                                   domain='plonelocales')
 
+            created = trans_util.ulocalized_time(brain.CreationDate,
+                                                  True, self.context,
+                                                  domain='plonelocales')
+
             newsitem = { 'title': brain.Title,
                          'author': author_name,
                          'author_id': brain.Creator,
-                         'date': modified,
+                         'date_modified': modified,
+                         'date_created': created,
                          'description': brain.Description,
                          'url': brain.getURL(),
                          'discussion_count': 0,



From jens at mail.se.linux.org  Sun Nov 16 11:14:22 2008
From: jens at mail.se.linux.org (jens at mail.se.linux.org)
Date: Sun, 16 Nov 2008 11:14:22 +0100
Subject: [commits] r210 -
	selinux-site/trunk/selinux.policy/selinux/policy/browser
Message-ID: <E1L1ee6-0005Z2-RT@mail.se.linux.org>

Author: jens
Date: 2008-11-16 11:14:22 +0100 (Sun, 16 Nov 2008)
New Revision: 210

Modified:
   selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
Log:
Visa 10 nyheter ist?\195?\164llet f?\195?\182r 5


Modified: selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py
===================================================================
--- selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-16 09:54:06 UTC (rev 209)
+++ selinux-site/trunk/selinux.policy/selinux/policy/browser/frontpage.py	2008-11-16 10:14:22 UTC (rev 210)
@@ -27,7 +27,7 @@
                   'review_state': 'published' }
 
         news = []
-        brains = catalog.searchResults(query)[:5]
+        brains = catalog.searchResults(query)[:10]
         for brain in brains:
             author = mtool.getMemberInfo(brain.Creator)
             author_name = author and author['fullname'] or brain.Creator



