polyrex-calendar 0.1.13 → 0.1.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 43046cae49a8bb07a5549b4348acfb3ad8e662f3
4
- data.tar.gz: c02d638727efa111ff15a4a0dc96eafa00b23880
3
+ metadata.gz: 68fe9cd5ead06826d1f5444367043efb6414b943
4
+ data.tar.gz: 7b9d400c21a3ba3c4d28fc1b80b4cbdaa01ebd2f
5
5
  SHA512:
6
- metadata.gz: 53d5cc3d4c823c2fa18b18c22d8a401e94def4db6fa55b1d9f2f1dac7e01e97f69c85f606941e865d190baaabff380c1ba6a2b3e89f2867e5e123c90de9a24a1
7
- data.tar.gz: 26be0a97522f12ed84ec7e4284b7619c1baa1b1d5276bdb694256ef3ca95eafbe58077495e7d051ad009be8b867d411a78a8803456475206f82541e48c1f81d2
6
+ metadata.gz: 1e84c62de61139e3d0d9b55c65c3570a8395a53ef62613cfbf55ba80387929ba42fa3b02597451a83993edaff2fbc195b56e437d6eaf506413eaab02a1dcd46e
7
+ data.tar.gz: 01252e2e6934a6d5114a86a4ed2f25f2e917660fbe51afbe0842ba3459c58e3600259850d1bf2c6645f23a6b21540f36dd95830daaa2463f9623128652ff27d9
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/week.css ADDED
@@ -0,0 +1,67 @@
1
+ /* week.css*/
2
+
3
+ #wrap h1 {
4
+ background-color: transparent;
5
+ font-size: 1.4em;
6
+ margin: 0.3em 0.3em;
7
+ padding: 0.4em 0.2em;
8
+ }
9
+
10
+ #wrap ul {
11
+ background-color: transparent;
12
+ list-style-type: none;
13
+ padding: 0.1em 1em;
14
+ margin: 0.3em 0.2em;
15
+ }
16
+
17
+ #wrap ul li {
18
+ background-color: transparent;
19
+ padding: 0.2em 0.2em;
20
+ margin: 0.2em 0.2em;
21
+ }
22
+
23
+ #wrap ul li h2 {
24
+ background-color: transparent;
25
+ font-size: 1.1em;
26
+ padding: 0.2em 0.3em;
27
+ margin: 0.1em 0.2em;
28
+ }
29
+
30
+ #wrap ul li ul {
31
+ background-color: transparent;
32
+ padding: 0.2em 0.3em;
33
+ margin: 0.1em 0.2em 0.2em 0.2em;
34
+ }
35
+
36
+ #wrap ul li ul li{
37
+ background-color: transparent;
38
+ border-bottom: 1px solid black;
39
+ font-size: 0.75em;
40
+ margin: 0.1em 0.1em 0em 0.1em;
41
+ min-height: 2.0em;
42
+ padding: 0.1em 0.1em 0em 0.1em;
43
+ }
44
+
45
+ #wrap ul li ul li div{
46
+ background-color: transparent;
47
+ float: left;
48
+ width: 7em;
49
+ padding: 0.1em;
50
+ margin-left: 0.6em;
51
+ }
52
+
53
+ #wrap div#duration{
54
+ background-color: transparent;
55
+ float: right;
56
+ width: 10em;
57
+ text-align: right;
58
+ }
59
+
60
+
61
+ #wrap ul li ul li p{
62
+ background-color: transparent;
63
+ clear: both;
64
+ font-size: 1.2em;
65
+ margin: 1.8em 0.5em 0.3em 0.4em;
66
+ padding: 0.3em 0.4em;
67
+ }
data/lib/week.xsl ADDED
@@ -0,0 +1,101 @@
1
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2
+ <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
3
+
4
+ <xsl:template match='week'>
5
+ <html>
6
+ <head>
7
+ <title>Weekly planner | generated by Polyrex-Calendar</title>
8
+ <link rel="stylesheet" href="week_layout.css"/>
9
+ <link rel="stylesheet" href="week.css"/>
10
+ </head>
11
+ <body>
12
+ <div id="wrap">
13
+ <h1>
14
+ <xsl:choose>
15
+ <xsl:when test="summary/label=''">
16
+ <xsl:value-of select="summary/mon"/>
17
+ </xsl:when>
18
+ <xsl:otherwise>
19
+ <xsl:value-of select="summary/label"/>
20
+ </xsl:otherwise>
21
+ </xsl:choose>
22
+ : Week <xsl:value-of select="summary/no"/>
23
+ </h1>
24
+ <xsl:apply-templates select='summary'/>
25
+ <xsl:apply-templates select='records'/>
26
+ </div>
27
+ </body>
28
+ </html>
29
+ </xsl:template>
30
+
31
+ <xsl:template match='week/summary'>
32
+ </xsl:template>
33
+
34
+ <xsl:template match='week/records'>
35
+ <div id='col1'>
36
+ <ul>
37
+ <xsl:apply-templates select="day[summary/wday &lt; '3']"/>
38
+ </ul>
39
+ </div>
40
+ <div id='col2'>
41
+ <ul>
42
+ <xsl:apply-templates select="day[summary/wday &gt;= '3']"/>
43
+ </ul>
44
+ </div>
45
+ </xsl:template>
46
+
47
+ <xsl:template match='day'>
48
+ <li>
49
+ <xsl:apply-templates select='summary'/>
50
+ <xsl:apply-templates select='records'/>
51
+ </li>
52
+ </xsl:template>
53
+
54
+ <xsl:template match='day/summary'>
55
+ <h2><xsl:value-of select="name"/> <xsl:text> </xsl:text><xsl:value-of select="xday"/><xsl:value-of select="ordinal"/></h2>
56
+ </xsl:template>
57
+
58
+ <xsl:template match='day/records'>
59
+ <xsl:choose>
60
+ <xsl:when test="entry">
61
+ <ul>
62
+ <xsl:apply-templates select='entry'/>
63
+ </ul>
64
+ </xsl:when>
65
+ <xsl:otherwise>
66
+ <ul>
67
+ <li></li>
68
+ <xsl:if test="../summary/wday &gt; '0' and ../summary/wday &lt; '6'">
69
+ <li></li>
70
+ </xsl:if>
71
+ </ul>
72
+ </xsl:otherwise>
73
+ </xsl:choose>
74
+ </xsl:template>
75
+
76
+
77
+ <xsl:template match='entry'>
78
+ <xsl:apply-templates select='summary'/>
79
+ <xsl:apply-templates select='records'/>
80
+ </xsl:template>
81
+
82
+ <xsl:template match='entry/summary'>
83
+ <li>
84
+ <xsl:if test="time_start != ''">
85
+ <div>
86
+ <xsl:value-of select='time_start'/>
87
+ <xsl:text> - </xsl:text>
88
+ <xsl:value-of select='time_end'/>
89
+ </div>
90
+ <xsl:text> </xsl:text>
91
+ <div id='duration'>(<xsl:value-of select='duration'/>)</div>
92
+ <p><xsl:value-of select='title'/></p>
93
+ </xsl:if>
94
+ </li>
95
+ </xsl:template>
96
+
97
+ <xsl:template match='entry/records'>
98
+ </xsl:template>
99
+
100
+
101
+ </xsl:stylesheet>
@@ -0,0 +1,27 @@
1
+ /* week_layout.css */
2
+
3
+ body {background-color: transparent }
4
+
5
+ #wrap {
6
+ background-color: transparent;
7
+ margin: 0 auto;
8
+ width: 1200px;
9
+ }
10
+
11
+ #wrap div {
12
+ background-color: transparent;
13
+ margin: 0.5em 1em;
14
+ padding: 0.3em 0.6em 0.3em 0.2em;
15
+ float: left;
16
+ width: 28em;
17
+ }
18
+
19
+ #wrap div#col1 {
20
+ background-color: transparent;
21
+ }
22
+
23
+ #wrap div#col2 {
24
+ background-color: transparent;
25
+ }
26
+
27
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -81,7 +81,10 @@ extra_rdoc_files: []
81
81
  files:
82
82
  - lib/calendar.xsl
83
83
  - lib/month_calendar.xsl
84
+ - lib/week.xsl
85
+ - lib/week.css
84
86
  - lib/layout.css
87
+ - lib/week_layout.css
85
88
  - lib/polyrex-calendar.rb~
86
89
  - lib/polyrex-calendar.rb
87
90
  - lib/calendar.xsl~
metadata.gz.sig CHANGED
Binary file