~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to xslt/item.xml.in

  • Committer: Package Import Robot
  • Author(s): bojo42
  • Date: 2012-03-29 14:17:21 UTC
  • mfrom: (1.3.9) (3.2.5 sid)
  • Revision ID: package-import@ubuntu.com-20120329141721-tbfopcrc5797wxt7
Tags: 1.8.3-0.1ubuntu1
* New upstream release (LP: #290666, #371754, #741543, #716688)
* Merge from Debian unstable (LP: #935147), remaining changes:
* debian/patches:
  - drop gtk-status-icon.patch & notification-append as in upstream
  - drop fix_systray_behavior as mostly upstreamed and rest seems unused
  - 01_ubuntu_feedlists: update & rename, move planets to "Open Source"  
  - add_X-Ubuntu-Gettext-Domain: rebase
  - libunity.patch: rebase, apply before indicator patch (liferea_shell.c)
  - libindicate_increase_version.patch: exclude from libindicate.patch
  - deactivate libindicate.patch, seems partly upstreamed and needs rework
* debian/control: libindicate-dev, libindicate-gtk-dev & libunity-dev
* debian/liferea.indicate & liferea.install: ship indicator desktop file
* debian/rules: enable libindicate

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
/**
5
5
 * Rendering stylesheet for Liferea (item view: item rendering)
6
6
 *
7
 
 * Copyright (C) 2006-2009 Lars Lindner <lars.lindner@gmail.com>
 
7
 * Copyright (C) 2006-2010 Lars Lindner <lars.lindner@gmail.com>
8
8
 *
9
9
 * This program is free software; you can redistribute it and/or modify
10
10
 * it under the terms of the GNU General Public License as published by
32
32
<xsl:param name="baseUrl"/>
33
33
<xsl:param name="summary"/>     <!-- 1=summary rendering, 0=normal rendering -->
34
34
<xsl:param name="single"/>      <!-- 1=single item rendering, 0=2 pane mode -->
 
35
<xsl:param name="txtDirection"/>        <!-- text direction, either "ltr" or "rtl" -->
 
36
<xsl:param name="appDirection"/>        <!-- text direction, either "ltr" or "rtl" -->
35
37
 
36
38
<xsl:template match="/itemset">
37
39
 
87
89
<div onmouseover="{$onMouseOver}" onmouseout="stopShow();">
88
90
 
89
91
<!-- header table -->
90
 
<xsl:variable name="flagclass">
91
 
  <xsl:if test="mark = '0'">un</xsl:if>
92
 
  <xsl:text>flagged</xsl:text>
93
 
</xsl:variable>
94
 
<table class="itemhead {$flagclass}" cellspacing="0" cellpadding="0">
 
92
<table class="itemhead" cellspacing="0" cellpadding="0" dir="{$txtDirection}">
95
93
 
96
94
<tr>
97
95
  <td valign="middle" class="headleft">
127
125
</table>
128
126
 
129
127
<!-- header metadata (author + categories + date + source feed) -->
130
 
<table class='headmeta' cellspacing="0" cellpadding="0">
 
128
<table class='headmeta' cellspacing="0" cellpadding="0" dir="{$appDirection}">
131
129
 
132
130
<xsl:if test="attributes/attribute[ @name = 'slash' ]">
133
131
<tr>
150
148
</tr>
151
149
</xsl:if>
152
150
 
153
 
<!-- If there is no item set source then this is a merged item list
154
 
     rendering and we should display the source feed title for the item.
155
 
     Only exception: News Bins which do not have an itemset source. -->
156
 
<xsl:if test="not(/itemset/source) and /itemset/feed/feedTitle">
 
151
<!-- In summary mode we are potential presenting multiple feeds
 
152
     and we should display the source feed title for the item. -->
 
153
<xsl:if test="$summary = '1'">
157
154
<tr>
158
155
 <td valign="top" class='source'> 
159
156
     <_span>Feed</_span>
259
256
</xsl:variable>
260
257
 
261
258
<table id="{sourceId}-{nr}" class="headmeta {$hiddenMenu}"
262
 
       cellspacing="0" cellpadding="0">
 
259
       cellspacing="0" cellpadding="0" dir="{$appDirection}">
263
260
<tr>
264
261
 <td class='itemmenu'> 
265
262
 
295
292
    </a>
296
293
  </xsl:if>
297
294
 
298
 
  <!-- link cosmos search -->
299
 
  <xsl:if test="source">
300
 
    <a class="linksearch" href="liferea-link-search://{sourceId}-{nr}">
301
 
      <img border="0" class="linksearchbtn" src="{$pixmapsDir}technorati.png"/>
302
 
      <_span>link cosmos</_span>
303
 
    </a>
304
 
  </xsl:if>
305
 
 
306
295
 </td><!-- end of comment and search engine link -->
307
296
</tr>
308
297
</table> <!-- itemmenutable -->
363
352
  </xsl:if>
364
353
 
365
354
  <!-- the item's content -->
366
 
  <p>
 
355
  <p dir="{$txtDirection}">
367
356
    <!-- optional gravatar -->
368
357
    <xsl:if test="attributes/attribute[ @name = 'gravatar' ]">
369
358
       <img align='left' class='gravatar' src="{attributes/attribute[ @name = 'gravatar' ]}"/>
510
499
   <xsl:choose>
511
500
      <xsl:when test="readStatus = '0'">summaryshaded</xsl:when>
512
501
      <xsl:otherwise>summaryunshaded</xsl:otherwise>
513
 
   </xsl:choose> summary<xsl:if test="mark = '0'">un</xsl:if>flagged
 
502
   </xsl:choose>
514
503
</xsl:variable>
515
504
    
516
505
<div class="{$summaryShading}">