gf-ralbum 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -0
- data/bin/{ralbum.rb → ralbum} +1 -1
- data/example/example.sh +2 -1
- data/example/test_jalbum_phototree/jalbum-settings.jap +321 -0
- data/example/test_jalbum_phototree/src/albumfiles.txt +9 -0
- data/example/test_jalbum_phototree/src/comments.properties +0 -0
- data/example/test_jalbum_phototree/src/flowers/albumfiles.txt +14 -0
- data/example/test_jalbum_phototree/src/meta.properties +2 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/album.xml +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_1469.wt.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_2291.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_2598.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3068.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3323.jpg +0 -0
- data/example/test_rubyphoto_phototree/flowers/IMG_3348.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/r_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/r_photo01.jpg.xml +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/md5_to_key.yaml +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/md5_to_key.yaml.test +0 -0
- data/example/{test_phototree/catalog_data → test_rubyphoto_phototree/ralbum}/project.xml +206 -3
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/album.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo01.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo02.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo02.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo03.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo03.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo04.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum01/subalbum01_photo04.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/album.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo01.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo01.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo02.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo02.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo03.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo03.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo04.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo04.jpg.xml +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo05.jpg +0 -0
- data/example/{test_phototree → test_rubyphoto_phototree}/subalbum02/subalbum02_photo05.jpg.xml +0 -0
- data/lib/ralbum.rb +9 -5
- data/lib/ralbum/album_tree/album.rb +74 -0
- data/lib/ralbum/album_tree/generate_album_tree_node_visitor.rb +73 -0
- data/lib/ralbum/album_tree/image_file.rb +88 -0
- data/lib/ralbum/{image_pool.rb → album_tree/image_pool.rb} +16 -4
- data/lib/ralbum/catalog.rb +7 -7
- data/lib/ralbum/cli/cli_ralbum.rb +66 -25
- data/lib/ralbum/image_strategies/copy_image_strategy.rb +16 -0
- data/lib/ralbum/image_strategies/linked_image_strategy.rb +18 -0
- data/lib/ralbum/image_strategies/scaled_image_strategy.rb +52 -0
- data/lib/ralbum/image_strategies/sepia_scaled_image_strategy.rb +50 -0
- data/lib/{ralbum-common → ralbum}/object_with_properties.rb +0 -0
- data/lib/{ralbum-common → ralbum}/object_with_validation.rb +0 -0
- data/lib/ralbum/photo_tree/jalbum_photo_tree.rb +83 -0
- data/lib/ralbum/photo_tree/photo_file.rb +149 -0
- data/lib/ralbum/photo_tree/photo_tree_item.rb +68 -0
- data/lib/ralbum/{photo_tree_node.rb → photo_tree/photo_tree_node.rb} +16 -13
- data/lib/ralbum/{photo_tree_builder.rb → photo_tree/rubyphoto_photo_tree.rb} +64 -46
- data/lib/ralbum/project.rb +48 -12
- data/lib/ralbum/skin.rb +34 -27
- data/lib/ralbum/skin_engine.rb +32 -17
- data/lib/ralbum/skin_engines/erb_skin_engine.rb +2 -5
- data/lib/ralbum/skin_engines/kwartz_skin_engine.rb +6 -9
- data/lib/ralbum/skin_manager.rb +11 -2
- data/lib/ralbum/skins/cgi/cgi_skin.rb +21 -23
- data/lib/ralbum/skins/cgi/res/model.rb +30 -32
- data/lib/ralbum/skins/gfold/inc/menu_bottom.html +53 -53
- data/lib/ralbum/skins/gfold/inc/menu_top.html +71 -71
- data/lib/ralbum/skins/gfold/inc/page_footer.html +28 -28
- data/lib/ralbum/skins/gfold/out/album_page.rb +316 -316
- data/lib/ralbum/skins/gfold/out/image_page.rb +231 -231
- data/lib/ralbum/skins/gfold/out/tree_page.rb +96 -96
- data/lib/ralbum/skins/gfold/res/prototype.js +3277 -3277
- data/lib/ralbum/skins/gfold/template/album_page.html +161 -161
- data/lib/ralbum/skins/gfold/template/album_page.plogic +127 -127
- data/lib/ralbum/skins/gfold/template/image_page.html +91 -91
- data/lib/ralbum/skins/gfold/template/image_page.plogic +70 -70
- data/lib/ralbum/skins/gfold/template/tree_page.html +79 -79
- data/lib/ralbum/skins/gfold/template/tree_page.plogic +45 -45
- data/lib/ralbum/skins/js/out/album_page.rb +2 -2
- data/lib/ralbum/skins/js/out/tree_page.rb +18 -17
- data/lib/ralbum/skins/js/template/album_page.html +2 -2
- data/lib/ralbum/skins/js/template/tree_page.html +1 -1
- data/lib/ralbum/skins/test_erb/template/album_page.rhtml +22 -0
- data/lib/ralbum/skins/test_erb/template/image_page.rhtml +44 -0
- data/lib/ralbum/tasks/compile_skins.rb +8 -0
- data/test/ralbum/cli/tc_cli_ralbum.rb +35 -0
- data/test/ralbum/image_strategies/tc_scaled_image_strategy.rb +18 -0
- data/test/ralbum/image_strategies/tc_sepia_scaled_image_strategy.rb +18 -0
- data/test/ralbum/photo_tree/tc_jalbum_photo_tree.rb +39 -0
- data/test/ralbum/photo_tree/tc_photo_file.rb +13 -0
- data/test/ralbum/{tc_01_photo_tree.rb → photo_tree/tc_photo_tree.rb} +10 -12
- data/test/ralbum/photo_tree/tc_rubyalbum_photo_tree.rb +20 -0
- data/test/ralbum/tc_album.rb +55 -0
- data/test/ralbum/tc_catalog.rb +8 -4
- data/test/ralbum/tc_image_pool.rb +37 -0
- data/test/ralbum/{tc_05_kwartz_skin_engine.rb → tc_kwartz_skin_engine.rb} +1 -1
- data/test/ralbum/{tc_04_skin_manager.rb → tc_skin_manager.rb} +8 -3
- data/test/ralbum/test_helper.rb +16 -1
- data/test_data/ralbum/test_data/is_test/dummy.txt +0 -0
- metadata +78 -81
- data/bin/ralbum-JPG2jpg.rb +0 -90
- data/bin/ralbum-compile_skins.rb +0 -18
- data/bin/ralbum-myconv.rb +0 -81
- data/bin/ralbum-readexif.rb +0 -18
- data/bin/ralbum-reorder.rb +0 -200
- data/lib/ralbum/album.rb +0 -66
- data/lib/ralbum/generate_album_tree_node_visitor.rb +0 -60
- data/lib/ralbum/image_file.rb +0 -81
- data/lib/ralbum/image_strategy.rb +0 -143
- data/lib/ralbum/photo_tree_item.rb +0 -89
- data/test/ralbum/cli/test_cli_ralbum.rb +0 -13
- data/test/ralbum/tc_02_photo_tree_builder.rb +0 -20
- data/test/ralbum/tc_03_album.rb +0 -42
- data/test/ralbum/tc_06_image_strategy.rb +0 -21
- data/test/test_ralbum.rb +0 -14
- data/test_data/ralbum/test_data/is_test/r_photo01_scaled.jpg +0 -0
- data/test_data/ralbum/test_data/is_test/r_photo01_sepia_scaled.jpg +0 -0
@@ -1,91 +1,91 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
-
<html kw:d="set pagename='albums'">
|
3
|
-
<head kw:d="set language=nil">
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
|
5
|
-
<title>Giovanni Ferro - @{@image.name}@</title>
|
6
|
-
<meta name="Description" content="Giovanni Ferro photos"/>
|
7
|
-
<meta name="keywords" content="Giovanni Ferro,photo,pictures,digital photography"/>
|
8
|
-
<link kw:d="mark:stylesheet1" rel="stylesheet" type="text/css" href="../res/style1.css" media="screen" title="style1"/>
|
9
|
-
<link kw:d="mark:stylesheet2" rel="alternate stylesheet" type="text/css" href="../res/style2.css" media="screen" title="style2"/>
|
10
|
-
<script kw:d="mark:prototype" type="text/javascript" src="../res/prototype.js"></script>
|
11
|
-
<script kw:d="mark:styleswitcher" type="text/javascript" src="../res/styleswitcher.js"></script>
|
12
|
-
</head>
|
13
|
-
<body>
|
14
|
-
|
15
|
-
<div id="replace_element_with_element:menu_top" style="text-align:center; border: solid 1px black;">Menu del sito</div>
|
16
|
-
|
17
|
-
<table class="maintable" align="center"
|
18
|
-
border="0" cellspacing="0" cellpadding="0">
|
19
|
-
|
20
|
-
<!-- Breadcrumbs or Trail -->
|
21
|
-
<tr>
|
22
|
-
<td class="album_breadcrumbs">
|
23
|
-
<span id="mark:breadcrumbs">
|
24
|
-
<a class="album_treepath" id="mark:item" href="@{@image.relroot + item_path}@">
|
25
|
-
<span kw:d="value item_title">Home</span>
|
26
|
-
</a>
|
27
|
-
<span id="mark:arrow" class="album_treepathdots">::</span>
|
28
|
-
</span>
|
29
|
-
</td>
|
30
|
-
<td class="album_breadcrumbs" align="right">
|
31
|
-
@{@image.name}@
|
32
|
-
</td>
|
33
|
-
</tr>
|
34
|
-
|
35
|
-
<!-- description + navigation buttons -->
|
36
|
-
<tr>
|
37
|
-
<td>
|
38
|
-
@{@image.description}@
|
39
|
-
</td>
|
40
|
-
<td align="right" valign="top" width="30%" nowrap="nowrap">
|
41
|
-
|
42
|
-
<span id="nav_buttons">
|
43
|
-
<a href="@{@image.relroot_with_prefix}@index.html" title="Up to top"><img kw:d="mark:topgif"
|
44
|
-
src="../res/top.gif" border="0" alt="Top"/></a>
|
45
|
-
|
46
|
-
<a title="Up to album" href="index.html"><img kw:d="mark: upgif"
|
47
|
-
src="../res/up.gif" border="0" alt="Up"/></a>
|
48
|
-
|
49
|
-
<a kw:d="if @image.
|
50
|
-
src="../res/left.gif" border="0" alt="Prev"/></a>
|
51
|
-
<a kw:d="if @image.
|
52
|
-
src="../res/right.gif" border="0" alt="Next"/></a>
|
53
|
-
</span>
|
54
|
-
|
55
|
-
</td>
|
56
|
-
</tr>
|
57
|
-
|
58
|
-
<!-- image -->
|
59
|
-
<tr>
|
60
|
-
<td colspan="2" align="center">
|
61
|
-
<a href="@{@image.relroot + @image.
|
62
|
-
src="../res_preview/image.jpg"
|
63
|
-
alt="Giovanni Ferro - @{@image.name}@"/></a>
|
64
|
-
</td>
|
65
|
-
</tr>
|
66
|
-
|
67
|
-
<!-- image footer -->
|
68
|
-
<tr>
|
69
|
-
<td colspan="2">
|
70
|
-
<table width="100%">
|
71
|
-
<tr>
|
72
|
-
<td align="left" class="small">
|
73
|
-
@{@image.size}@K JPEG image,
|
74
|
-
@{@image.width}@X@{@image.height}@ pixels
|
75
|
-
</td>
|
76
|
-
<td align="right">
|
77
|
-
<span id="replace_element_with_element:nav_buttons"> Buttons </span>
|
78
|
-
</td>
|
79
|
-
</tr>
|
80
|
-
</table>
|
81
|
-
</td>
|
82
|
-
</tr>
|
83
|
-
|
84
|
-
</table>
|
85
|
-
|
86
|
-
<div id="replace_element_with_element:page_footer" style="text-align:center; border: solid 1px black;">Page footer</div>
|
87
|
-
|
88
|
-
</body>
|
89
|
-
</html>
|
90
|
-
|
91
|
-
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
2
|
+
<html kw:d="set pagename='albums'">
|
3
|
+
<head kw:d="set language=nil">
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
|
5
|
+
<title>Giovanni Ferro - @{@image.name}@</title>
|
6
|
+
<meta name="Description" content="Giovanni Ferro photos"/>
|
7
|
+
<meta name="keywords" content="Giovanni Ferro,photo,pictures,digital photography"/>
|
8
|
+
<link kw:d="mark:stylesheet1" rel="stylesheet" type="text/css" href="../res/style1.css" media="screen" title="style1"/>
|
9
|
+
<link kw:d="mark:stylesheet2" rel="alternate stylesheet" type="text/css" href="../res/style2.css" media="screen" title="style2"/>
|
10
|
+
<script kw:d="mark:prototype" type="text/javascript" src="../res/prototype.js"></script>
|
11
|
+
<script kw:d="mark:styleswitcher" type="text/javascript" src="../res/styleswitcher.js"></script>
|
12
|
+
</head>
|
13
|
+
<body>
|
14
|
+
|
15
|
+
<div id="replace_element_with_element:menu_top" style="text-align:center; border: solid 1px black;">Menu del sito</div>
|
16
|
+
|
17
|
+
<table class="maintable" align="center"
|
18
|
+
border="0" cellspacing="0" cellpadding="0">
|
19
|
+
|
20
|
+
<!-- Breadcrumbs or Trail -->
|
21
|
+
<tr>
|
22
|
+
<td class="album_breadcrumbs">
|
23
|
+
<span id="mark:breadcrumbs">
|
24
|
+
<a class="album_treepath" id="mark:item" href="@{@image.relroot + item_path}@">
|
25
|
+
<span kw:d="value item_title">Home</span>
|
26
|
+
</a>
|
27
|
+
<span id="mark:arrow" class="album_treepathdots">::</span>
|
28
|
+
</span>
|
29
|
+
</td>
|
30
|
+
<td class="album_breadcrumbs" align="right">
|
31
|
+
@{@image.name}@
|
32
|
+
</td>
|
33
|
+
</tr>
|
34
|
+
|
35
|
+
<!-- description + navigation buttons -->
|
36
|
+
<tr>
|
37
|
+
<td>
|
38
|
+
@{@image.description}@
|
39
|
+
</td>
|
40
|
+
<td align="right" valign="top" width="30%" nowrap="nowrap">
|
41
|
+
|
42
|
+
<span id="nav_buttons">
|
43
|
+
<a href="@{@image.relroot_with_prefix}@index.html" title="Up to top"><img kw:d="mark:topgif"
|
44
|
+
src="../res/top.gif" border="0" alt="Top"/></a>
|
45
|
+
|
46
|
+
<a title="Up to album" href="index.html"><img kw:d="mark: upgif"
|
47
|
+
src="../res/up.gif" border="0" alt="Up"/></a>
|
48
|
+
|
49
|
+
<a kw:d="if @image.prev_page_url!=nil" title="Prev photo" href="@{@image.prev_page_url}@"><img kw:d="mark:leftgif"
|
50
|
+
src="../res/left.gif" border="0" alt="Prev"/></a>
|
51
|
+
<a kw:d="if @image.next_page_url!=nil" title="Next photo" href="@{@image.next_page_url}@"><img kw:d="mark:rightgif"
|
52
|
+
src="../res/right.gif" border="0" alt="Next"/></a>
|
53
|
+
</span>
|
54
|
+
|
55
|
+
</td>
|
56
|
+
</tr>
|
57
|
+
|
58
|
+
<!-- image -->
|
59
|
+
<tr>
|
60
|
+
<td colspan="2" align="center">
|
61
|
+
<a href="@{@image.relroot + @image.src_url}@"><img kw:d="mark:image" border="0"
|
62
|
+
src="../res_preview/image.jpg"
|
63
|
+
alt="Giovanni Ferro - @{@image.name}@"/></a>
|
64
|
+
</td>
|
65
|
+
</tr>
|
66
|
+
|
67
|
+
<!-- image footer -->
|
68
|
+
<tr>
|
69
|
+
<td colspan="2">
|
70
|
+
<table width="100%">
|
71
|
+
<tr>
|
72
|
+
<td align="left" class="small">
|
73
|
+
@{@image.size}@K JPEG image,
|
74
|
+
@{@image.width}@X@{@image.height}@ pixels
|
75
|
+
</td>
|
76
|
+
<td align="right">
|
77
|
+
<span id="replace_element_with_element:nav_buttons"> Buttons </span>
|
78
|
+
</td>
|
79
|
+
</tr>
|
80
|
+
</table>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
|
84
|
+
</table>
|
85
|
+
|
86
|
+
<div id="replace_element_with_element:page_footer" style="text-align:center; border: solid 1px black;">Page footer</div>
|
87
|
+
|
88
|
+
</body>
|
89
|
+
</html>
|
90
|
+
|
91
|
+
|
@@ -1,70 +1,70 @@
|
|
1
|
-
#stylesheet1 {
|
2
|
-
attrs: 'href' "#{@image.relroot}res/style1.css";
|
3
|
-
}
|
4
|
-
|
5
|
-
#stylesheet2 {
|
6
|
-
attrs: 'href' "#{@image.relroot}res/style2.css";
|
7
|
-
}
|
8
|
-
|
9
|
-
#styleswitcher {
|
10
|
-
attrs: 'src' "#{@image.relroot}res/styleswitcher.js";
|
11
|
-
}
|
12
|
-
|
13
|
-
#prototype {
|
14
|
-
attrs: 'src' "#{@image.relroot}res/prototype.js";
|
15
|
-
}
|
16
|
-
|
17
|
-
#topgif {
|
18
|
-
attrs: 'src' "#{@image.relroot}res/top.gif";
|
19
|
-
}
|
20
|
-
|
21
|
-
#upgif {
|
22
|
-
attrs: 'src' "#{@image.relroot}res/up.gif";
|
23
|
-
}
|
24
|
-
|
25
|
-
#leftgif {
|
26
|
-
attrs: 'src' "#{@image.relroot}res/left.gif";
|
27
|
-
}
|
28
|
-
|
29
|
-
#rightgif {
|
30
|
-
attrs: 'src' "#{@image.relroot}res/right.gif";
|
31
|
-
}
|
32
|
-
|
33
|
-
#valid_xhtml_png {
|
34
|
-
attrs: 'src' "#{@image.relroot}res/valid-xhtml.png";
|
35
|
-
}
|
36
|
-
|
37
|
-
#valid_css_png {
|
38
|
-
attrs: 'src' "#{@image.relroot}res/valid-css.png";
|
39
|
-
}
|
40
|
-
|
41
|
-
#image {
|
42
|
-
attrs: 'src' "#{@image.relroot + @image.
|
43
|
-
}
|
44
|
-
|
45
|
-
#breadcrumbs {
|
46
|
-
logic: {
|
47
|
-
item_ctr = 0
|
48
|
-
for item in @image.breadcrumbs
|
49
|
-
item_ctr += 1
|
50
|
-
if item_ctr > 1
|
51
|
-
_element("arrow") # expand element marked with arrow
|
52
|
-
end
|
53
|
-
_element("item") # expand element marked with item
|
54
|
-
end
|
55
|
-
}
|
56
|
-
}
|
57
|
-
|
58
|
-
#item {
|
59
|
-
logic: {
|
60
|
-
item_path = item[:path] # retrieve path and
|
61
|
-
item_title = item[:title] # title from a hash
|
62
|
-
if item_path.nil? # if path is null then
|
63
|
-
_cont # don't print <a></a>
|
64
|
-
else
|
65
|
-
_stag
|
66
|
-
_cont
|
67
|
-
_etag
|
68
|
-
end
|
69
|
-
}
|
70
|
-
}
|
1
|
+
#stylesheet1 {
|
2
|
+
attrs: 'href' "#{@image.relroot}res/style1.css";
|
3
|
+
}
|
4
|
+
|
5
|
+
#stylesheet2 {
|
6
|
+
attrs: 'href' "#{@image.relroot}res/style2.css";
|
7
|
+
}
|
8
|
+
|
9
|
+
#styleswitcher {
|
10
|
+
attrs: 'src' "#{@image.relroot}res/styleswitcher.js";
|
11
|
+
}
|
12
|
+
|
13
|
+
#prototype {
|
14
|
+
attrs: 'src' "#{@image.relroot}res/prototype.js";
|
15
|
+
}
|
16
|
+
|
17
|
+
#topgif {
|
18
|
+
attrs: 'src' "#{@image.relroot}res/top.gif";
|
19
|
+
}
|
20
|
+
|
21
|
+
#upgif {
|
22
|
+
attrs: 'src' "#{@image.relroot}res/up.gif";
|
23
|
+
}
|
24
|
+
|
25
|
+
#leftgif {
|
26
|
+
attrs: 'src' "#{@image.relroot}res/left.gif";
|
27
|
+
}
|
28
|
+
|
29
|
+
#rightgif {
|
30
|
+
attrs: 'src' "#{@image.relroot}res/right.gif";
|
31
|
+
}
|
32
|
+
|
33
|
+
#valid_xhtml_png {
|
34
|
+
attrs: 'src' "#{@image.relroot}res/valid-xhtml.png";
|
35
|
+
}
|
36
|
+
|
37
|
+
#valid_css_png {
|
38
|
+
attrs: 'src' "#{@image.relroot}res/valid-css.png";
|
39
|
+
}
|
40
|
+
|
41
|
+
#image {
|
42
|
+
attrs: 'src' "#{@image.relroot + @image.page_url}";
|
43
|
+
}
|
44
|
+
|
45
|
+
#breadcrumbs {
|
46
|
+
logic: {
|
47
|
+
item_ctr = 0
|
48
|
+
for item in @image.breadcrumbs
|
49
|
+
item_ctr += 1
|
50
|
+
if item_ctr > 1
|
51
|
+
_element("arrow") # expand element marked with arrow
|
52
|
+
end
|
53
|
+
_element("item") # expand element marked with item
|
54
|
+
end
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
#item {
|
59
|
+
logic: {
|
60
|
+
item_path = item[:path] # retrieve path and
|
61
|
+
item_title = item[:title] # title from a hash
|
62
|
+
if item_path.nil? # if path is null then
|
63
|
+
_cont # don't print <a></a>
|
64
|
+
else
|
65
|
+
_stag
|
66
|
+
_cont
|
67
|
+
_etag
|
68
|
+
end
|
69
|
+
}
|
70
|
+
}
|
@@ -1,79 +1,79 @@
|
|
1
|
-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
5
|
-
<title>Album Tree</title>
|
6
|
-
<link rel="stylesheet" type="text/css" href="rubyphoto.css">
|
7
|
-
</head>
|
8
|
-
<body/>
|
9
|
-
|
10
|
-
<table align="center" border="0" cellspacing="0" cellpadding="3" width="650">
|
11
|
-
|
12
|
-
<!-- title -->
|
13
|
-
<tr>
|
14
|
-
<td class="shade">
|
15
|
-
<span class="title">Album Tree</span>
|
16
|
-
</td>
|
17
|
-
</tr>
|
18
|
-
|
19
|
-
<tr>
|
20
|
-
<td>
|
21
|
-
<span id="mark:albumstree">
|
22
|
-
<li id="mark:treenode"><a href="@{album.
|
23
|
-
<ul id="mark:tree"></ul>
|
24
|
-
</span>
|
25
|
-
</td>
|
26
|
-
</tr>
|
27
|
-
|
28
|
-
<tr>
|
29
|
-
<td>
|
30
|
-
<br>
|
31
|
-
<ul>
|
32
|
-
<li><a href="/index.html">foto</a>
|
33
|
-
<ul>
|
34
|
-
<li><a href="10_Roma/index.html">Roma</a>
|
35
|
-
<ul>
|
36
|
-
<li><a href="10_Roma/Campidoglio/index.html">Campidoglio</a>
|
37
|
-
<li><a href="10_Roma/Celio/index.html">Celio</a>
|
38
|
-
<li><a href="10_Roma/CircoMassimo/index.html">Circo Massimo</a>
|
39
|
-
<li><a href="10_Roma/Colosseo/index.html">Colosseo</a>
|
40
|
-
<li><a href="10_Roma/Farnese/index.html">Piazza Farnese e Dintorni</a>
|
41
|
-
<li><a href="10_Roma/FontanaTrevi/index.html">Fontana di Trevi</a>
|
42
|
-
<li><a href="10_Roma/ForiRomani/index.html">Fori Romani</a>
|
43
|
-
<li><a href="10_Roma/Ghetto/index.html">Ghetto</a>
|
44
|
-
<li><a href="10_Roma/Gianicolo/index.html">Gianicolo</a>
|
45
|
-
<li><a href="10_Roma/GianicoloAlba/index.html">Il gianicolo all'alba</a>
|
46
|
-
<li><a href="10_Roma/MonteMario/index.html">Monte Mario</a>
|
47
|
-
</ul>
|
48
|
-
<li><a href="20_BreveViaggioInToscana/index.html">Breve viaggio in Toscana</a>
|
49
|
-
<ul>
|
50
|
-
<li><a href="20_BreveViaggioInToscana/VersoPisa/index.html">Verso Pisa</a>
|
51
|
-
<li><a href="20_BreveViaggioInToscana/Pisa/index.html">Pisa</a>
|
52
|
-
<li><a href="20_BreveViaggioInToscana/Firenze/index.html">Un giorno a Firenze</a>
|
53
|
-
<li><a href="20_BreveViaggioInToscana/Livorno/index.html">Un giorno a Livorno</a>
|
54
|
-
<li><a href="20_BreveViaggioInToscana/Meo/index.html">Meo: il gatto!</a>
|
55
|
-
</ul>
|
56
|
-
<li><a href="30_GitaInToscana/index.html">Gita In Toscana</a>
|
57
|
-
<ul>
|
58
|
-
<li><a href="30_GitaInToscana/00_VersoPisa/index.html">Verso Pisa</a>
|
59
|
-
<li><a href="30_GitaInToscana/01_Viareggio/index.html">Viareggio</a>
|
60
|
-
<li><a href="30_GitaInToscana/02_Luminara/index.html">Luminara San Ranieri</a>
|
61
|
-
</ul>
|
62
|
-
<li><a href="40_Montepulciano/index.html">Montepulciano</a>
|
63
|
-
<li><a href="45_Calabria/index.html">Calabria</a>
|
64
|
-
<ul>
|
65
|
-
<li><a href="45_Calabria/00_Vibo/index.html">Vibo Valentia</a>
|
66
|
-
<li><a href="45_Calabria/05_Pizzo/index.html">Pizzo</a>
|
67
|
-
</ul>
|
68
|
-
<li><a href="50_Oggetti/index.html">Oggetti</a>
|
69
|
-
<li><a href="60_Flora/index.html">Fiori e Piante</a>
|
70
|
-
</ul>
|
71
|
-
</ul>
|
72
|
-
<br>
|
73
|
-
</td>
|
74
|
-
</tr>
|
75
|
-
</table>
|
76
|
-
|
77
|
-
</body>
|
78
|
-
</html>
|
79
|
-
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
5
|
+
<title>Album Tree</title>
|
6
|
+
<link rel="stylesheet" type="text/css" href="rubyphoto.css">
|
7
|
+
</head>
|
8
|
+
<body/>
|
9
|
+
|
10
|
+
<table align="center" border="0" cellspacing="0" cellpadding="3" width="650">
|
11
|
+
|
12
|
+
<!-- title -->
|
13
|
+
<tr>
|
14
|
+
<td class="shade">
|
15
|
+
<span class="title">Album Tree</span>
|
16
|
+
</td>
|
17
|
+
</tr>
|
18
|
+
|
19
|
+
<tr>
|
20
|
+
<td>
|
21
|
+
<span id="mark:albumstree">
|
22
|
+
<li id="mark:treenode"><a href="@{album.page_url}@">@{album.title}@</a></li>
|
23
|
+
<ul id="mark:tree"></ul>
|
24
|
+
</span>
|
25
|
+
</td>
|
26
|
+
</tr>
|
27
|
+
|
28
|
+
<tr>
|
29
|
+
<td>
|
30
|
+
<br>
|
31
|
+
<ul>
|
32
|
+
<li><a href="/index.html">foto</a>
|
33
|
+
<ul>
|
34
|
+
<li><a href="10_Roma/index.html">Roma</a>
|
35
|
+
<ul>
|
36
|
+
<li><a href="10_Roma/Campidoglio/index.html">Campidoglio</a>
|
37
|
+
<li><a href="10_Roma/Celio/index.html">Celio</a>
|
38
|
+
<li><a href="10_Roma/CircoMassimo/index.html">Circo Massimo</a>
|
39
|
+
<li><a href="10_Roma/Colosseo/index.html">Colosseo</a>
|
40
|
+
<li><a href="10_Roma/Farnese/index.html">Piazza Farnese e Dintorni</a>
|
41
|
+
<li><a href="10_Roma/FontanaTrevi/index.html">Fontana di Trevi</a>
|
42
|
+
<li><a href="10_Roma/ForiRomani/index.html">Fori Romani</a>
|
43
|
+
<li><a href="10_Roma/Ghetto/index.html">Ghetto</a>
|
44
|
+
<li><a href="10_Roma/Gianicolo/index.html">Gianicolo</a>
|
45
|
+
<li><a href="10_Roma/GianicoloAlba/index.html">Il gianicolo all'alba</a>
|
46
|
+
<li><a href="10_Roma/MonteMario/index.html">Monte Mario</a>
|
47
|
+
</ul>
|
48
|
+
<li><a href="20_BreveViaggioInToscana/index.html">Breve viaggio in Toscana</a>
|
49
|
+
<ul>
|
50
|
+
<li><a href="20_BreveViaggioInToscana/VersoPisa/index.html">Verso Pisa</a>
|
51
|
+
<li><a href="20_BreveViaggioInToscana/Pisa/index.html">Pisa</a>
|
52
|
+
<li><a href="20_BreveViaggioInToscana/Firenze/index.html">Un giorno a Firenze</a>
|
53
|
+
<li><a href="20_BreveViaggioInToscana/Livorno/index.html">Un giorno a Livorno</a>
|
54
|
+
<li><a href="20_BreveViaggioInToscana/Meo/index.html">Meo: il gatto!</a>
|
55
|
+
</ul>
|
56
|
+
<li><a href="30_GitaInToscana/index.html">Gita In Toscana</a>
|
57
|
+
<ul>
|
58
|
+
<li><a href="30_GitaInToscana/00_VersoPisa/index.html">Verso Pisa</a>
|
59
|
+
<li><a href="30_GitaInToscana/01_Viareggio/index.html">Viareggio</a>
|
60
|
+
<li><a href="30_GitaInToscana/02_Luminara/index.html">Luminara San Ranieri</a>
|
61
|
+
</ul>
|
62
|
+
<li><a href="40_Montepulciano/index.html">Montepulciano</a>
|
63
|
+
<li><a href="45_Calabria/index.html">Calabria</a>
|
64
|
+
<ul>
|
65
|
+
<li><a href="45_Calabria/00_Vibo/index.html">Vibo Valentia</a>
|
66
|
+
<li><a href="45_Calabria/05_Pizzo/index.html">Pizzo</a>
|
67
|
+
</ul>
|
68
|
+
<li><a href="50_Oggetti/index.html">Oggetti</a>
|
69
|
+
<li><a href="60_Flora/index.html">Fiori e Piante</a>
|
70
|
+
</ul>
|
71
|
+
</ul>
|
72
|
+
<br>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
</table>
|
76
|
+
|
77
|
+
</body>
|
78
|
+
</html>
|
79
|
+
|