weeklyplanner_template 0.1.2 → 0.1.3

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: c09b9585d354f08ff78d3207708d4b5d6808e674
4
- data.tar.gz: 506464f8204c4a1849a2c331dde91b2f3d6d4e24
3
+ metadata.gz: f0110088fb61a450c4dee23f5e58335beb902442
4
+ data.tar.gz: 6fee8245ee642e4fcc3474d335f68cff15e9e775
5
5
  SHA512:
6
- metadata.gz: 480d296ff90cb87c842ad975f36082ce3b6d135a75c3bff09e4920c42ac3b8c469a8a0ce7e5c7a715578c2e38e6db8c1fde96588df45c81d3ca62fa477e3e447
7
- data.tar.gz: 2506d30213bec40a516919fde39186e2e15cfff1afe7eb0ea7696f5da65799d917584c5a05de04c14b02436125376a7a513ee0c636598d40d56cbd9b4b527bd0
6
+ metadata.gz: 5fa23082889ba06b48e96681fc71c17f20b141b1f8e485aecc6af2739191480d8cd89b7138547fed954b5729746b752479b55697769829bfe0451d6f28de4c88
7
+ data.tar.gz: d842bb852c006496f4dbcba8783b6f7a05eec5a030b52f206a85555cce61b8fd6114181612e8255fe7ec8484d6d89bef6ddca03c94cbb18f624fa8cad4b0c929
checksums.yaml.gz.sig CHANGED
Binary file
@@ -0,0 +1,26 @@
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
+
@@ -0,0 +1,117 @@
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
+ <header>
14
+ <nav>
15
+ <ul>
16
+ <li><a href='/'>home</a></li>
17
+ <li><a href='/calendar/'>calendar</a></li>
18
+ <li>weekly planner</li>
19
+ </ul>
20
+ </nav>
21
+ <h1>
22
+ <xsl:choose>
23
+ <xsl:when test="summary/label=''">
24
+ <xsl:value-of select="summary/mon"/>
25
+ </xsl:when>
26
+ <xsl:otherwise>
27
+ <xsl:value-of select="summary/label"/>
28
+ </xsl:otherwise>
29
+ </xsl:choose>
30
+ : Week <xsl:value-of select="summary/no"/>
31
+ </h1>
32
+ </header>
33
+ <xsl:apply-templates select='summary'/>
34
+ <xsl:apply-templates select='records'/>
35
+ </div>
36
+ </body>
37
+ </html>
38
+ </xsl:template>
39
+
40
+ <xsl:template match='week/summary'>
41
+ </xsl:template>
42
+
43
+ <xsl:template match='week/records'>
44
+ <div id='col1'>
45
+ <ul>
46
+ <xsl:apply-templates select="day[position() &lt; 5]"/>
47
+ </ul>
48
+ </div>
49
+ <div id='col2'>
50
+ <ul>
51
+ <xsl:apply-templates select="day[position() &gt;= 5]"/>
52
+ </ul>
53
+ </div>
54
+ </xsl:template>
55
+
56
+ <xsl:template match='day'>
57
+ <xsl:element name="li">
58
+ <xsl:if test="summary/@class">
59
+ <xsl:attribute name="class"><xsl:value-of select="summary/@class"/></xsl:attribute>
60
+ </xsl:if>
61
+ <xsl:apply-templates select='summary'/>
62
+ <ul>
63
+ <xsl:apply-templates select='records'/>
64
+ </ul>
65
+ <div><xsl:value-of select="bankholiday"/></div>
66
+ </xsl:element>
67
+ </xsl:template>
68
+
69
+ <xsl:template match='day/summary'>
70
+ <h2><xsl:value-of select="title"/> <xsl:text> </xsl:text><xsl:value-of select="xday"/><xsl:value-of select="ordinal"/></h2>
71
+ <h3><xsl:value-of select="event"/></h3>
72
+ </xsl:template>
73
+
74
+ <xsl:template match='day/records'>
75
+ <xsl:choose>
76
+ <xsl:when test="entry">
77
+
78
+ <xsl:apply-templates select='entry'/>
79
+
80
+ </xsl:when>
81
+ <xsl:otherwise>
82
+
83
+ <li></li>
84
+ <xsl:if test="../summary/wday &gt; '0' and ../summary/wday &lt; '6'">
85
+ <li></li>
86
+ </xsl:if>
87
+
88
+ </xsl:otherwise>
89
+ </xsl:choose>
90
+ </xsl:template>
91
+
92
+
93
+ <xsl:template match='entry'>
94
+ <xsl:apply-templates select='summary'/>
95
+ <xsl:apply-templates select='records'/>
96
+ </xsl:template>
97
+
98
+ <xsl:template match='entry/summary'>
99
+ <li>
100
+ <xsl:if test="time_start != ''">
101
+ <div>
102
+ <xsl:value-of select='time_start'/>
103
+ <xsl:text> - </xsl:text>
104
+ <xsl:value-of select='time_end'/>
105
+ </div>
106
+ <xsl:text> </xsl:text>
107
+ <div id='duration'>(<xsl:value-of select='duration'/>)</div>
108
+ <p><xsl:value-of select='title'/></p>
109
+ </xsl:if>
110
+ </li>
111
+ </xsl:template>
112
+
113
+ <xsl:template match='entry/records'>
114
+ </xsl:template>
115
+
116
+
117
+ </xsl:stylesheet>
@@ -0,0 +1,93 @@
1
+ /* week.css*/
2
+
3
+ #wrap>header {
4
+ background-color: transparent;
5
+ }
6
+
7
+ #wrap>header>h1 {
8
+ background-color: transparent;
9
+ color: #987;
10
+ font-size: 1.4em;
11
+ margin: 0.3em 0.3em;
12
+ padding: 0.4em 0.2em;
13
+ }
14
+
15
+
16
+ #wrap>header>nav:first-child>ul{
17
+ background-color: transparent;
18
+ list-style-type: none;
19
+ }
20
+ #wrap>header>nav:first-child>ul>li {
21
+ background-color: transparent;
22
+ display: inline;
23
+ }
24
+
25
+ #wrap>header>nav:first-child>ul>li~li:before {
26
+ background-color: transparent;
27
+ content: "> ";
28
+ }
29
+
30
+ #wrap div ul {
31
+ background-color: transparent;
32
+ list-style-type: none;
33
+ padding: 0.1em 1em;
34
+ margin: 0.3em 0.2em;
35
+ }
36
+
37
+ #wrap div ul li {
38
+ background-color: transparent;
39
+ padding: 0.2em 0.2em;
40
+ margin: 0.2em 0.2em;
41
+ }
42
+
43
+ #wrap div ul li.selected {
44
+ background-color: transparent;
45
+ border: 4px solid rgba(200,200,150,0.6);
46
+ }
47
+
48
+
49
+ #wrap ul li h2 {
50
+ background-color: transparent;
51
+ font-size: 1.1em;
52
+ padding: 0.2em 0.3em;
53
+ margin: 0.1em 0.2em;
54
+ }
55
+
56
+ #wrap ul li ul {
57
+ background-color: transparent;
58
+ padding: 0.2em 0.3em;
59
+ margin: 0.1em 0.2em 0.2em 0.2em;
60
+ }
61
+
62
+ #wrap ul li ul li{
63
+ background-color: transparent;
64
+ border-bottom: 1px solid black;
65
+ font-size: 0.75em;
66
+ margin: 0.1em 0.1em 0em 0.1em;
67
+ min-height: 2.0em;
68
+ padding: 0.1em 0.1em 0em 0.1em;
69
+ }
70
+
71
+ #wrap ul li ul li div{
72
+ background-color: transparent;
73
+ float: left;
74
+ width: 7em;
75
+ padding: 0.1em;
76
+ margin-left: 0.6em;
77
+ }
78
+
79
+ #wrap div#duration{
80
+ background-color: transparent;
81
+ float: right;
82
+ width: 10em;
83
+ text-align: right;
84
+ }
85
+
86
+
87
+ #wrap ul li ul li p{
88
+ background-color: transparent;
89
+ clear: both;
90
+ font-size: 1.2em;
91
+ margin: 1.8em 0.5em 0.3em 0.4em;
92
+ padding: 0.3em 0.4em;
93
+ }
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weeklyplanner_template
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -60,6 +60,9 @@ extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
62
  - lib/weeklyplanner_template.rb
63
+ - template/landscape1/layout.css
64
+ - template/landscape1/planner.xsl
65
+ - template/landscape1/style.css
63
66
  homepage: https://github.com/jrobertson/weeklyplanner_template
64
67
  licenses:
65
68
  - MIT
metadata.gz.sig CHANGED
Binary file