source: projects/web/trunk/template/layout-top.html.erb @ 1386

Revision 1386, 6.3 KB checked in by daisuke, 14 years ago (diff)

add vineplus5 info on toppage

Line 
1<%
2header=File.open("template/header.tmpl")
3footer=File.open("template/footer.tmpl")
4%><%= header.read %>
5
6<script type="text/javascript" src="/js/dlwin.js"></script>
7
8<div id="wrapper">
9<!-- start page -->
10<div id="page">
11  <!-- start content -->
12  <div id="content">
13
14<%= yield %>
15
16<!-- Vine Linux News -->
17    <h2><a href="/news/">お知らせ</a>
18        <a href="/news/news.rdf">
19        <img src="/images/rss.png"></a></h2>
20    <div class="top-news">
21    <table summary="news">
22<%
23  require 'rss'
24  url = 'news/news.rdf'
25  rss = RSS::Parser.parse(url, false)
26  count = 0
27  max_count = 5
28  rss.items.each do |i|
29%>
30<%= "\t<tr>" %>
31<%= "\t  <th><a href=\"#{i.link}\">#{i.title}</a></th>" %>
32<%= "\t  <td>#{i.date.strftime("%Y/%m/%d")}</td></tr>" %>
33<%
34    count += 1
35    if count == max_count
36      break
37    end
38  end
39%>
40        <tr><th><a href="/news/">もっと読む...</a></th></tr>
41    </table>
42    </div><!-- end top-news -->
43<!-- Vine Linux News -->
44
45<!-- Vine Linux Magazine -->
46    <h2><a href="/vlmagazine/">Vine Linux Magazine</a>
47        <a href="/vlmagazine/vlmagazine.rdf">
48        <img src="/images/rss.png"></a></h2>
49    <div class="top-news">
50    <table summary="vlmagazine">
51<%
52  require 'rss'
53  url = 'vlmagazine/vlmagazine.rdf'
54  rss = RSS::Parser.parse(url, false)
55  count = 0
56  max_count = 5
57  rss.items.each do |i|
58%>
59<%= "\t<tr>" %>
60<%= "\t  <th><a href=\"#{i.link}\">#{i.title}</a></th>" %>
61<%= "\t  <td>#{i.date.strftime("%Y/%m/%d")}</td></tr>" %>
62<%
63    count += 1
64    if count == max_count
65      break
66    end
67  end
68%>
69        <tr><th><a href="/vlmagazine/">もっと読む...</a></th></tr>
70    </table>
71    </div><!-- end top-news -->
72<!-- Vine Linux Magazine -->
73
74<!-- Vine Linux Events -->
75    <h2>イベント・勉強会等
76        <a href="/events/events.rdf">
77        <img src="/images/rss.png"></a></h2>
78    <div class="top-news">
79    <table summary="news">
80<%
81  require 'rss'
82  url = 'events/events.rdf'
83  rss = RSS::Parser.parse(url, false)
84  count = 0
85  max_count = 5
86  rss.items.each do |i|
87%>
88<%= "\t<tr>" %>
89<%= "\t  <th><a href=\"#{i.link}\">#{i.title}</a></th>" %>
90<%= "\t  <td>#{i.date.strftime("%Y/%m/%d")}</td></tr>" %>
91<%
92    count += 1
93    if count == max_count
94      break
95    end
96  end
97%>
98        <tr><th><a href="/events/">もっと読む...</a></th></tr>
99    </table>
100    </div><!-- end top-news -->
101<!-- Vine Linux Events -->
102
103  </div><!-- end content -->
104
105  <div id="sidebar1" class="sidebar">
106    <ul>
107      <li>
108<!-- SiteSearch Google -->
109<form action="http://www.google.co.jp/cse" id="cse-search-box">
110  <div>
111    <input type="hidden" name="cx" value="partner-pub-0334540465096658:xkym6qy6e3r" />
112    <input type="hidden" name="ie" value="UTF-8" />
113    <input type="text" name="q" size="31" />
114    <input type="submit" name="sa" value="&#x691c;&#x7d22;" />
115  </div>
116</form>
117<script type="text/javascript" src="http://www.google.co.jp/cse/brand?form=cse-search-box&amp;lang=ja"></script> 
118<!-- SiteSearch Google -->
119      </li>
120      <li>
121        <h2>スポンサード リンク</h2>
122<script type="text/javascript"><!--
123google_ad_client = "pub-0334540465096658";
124/* vinelinux sidebar top */
125google_ad_slot = "1289280287";
126google_ad_width = 300;
127google_ad_height = 250;
128//-->
129</script>
130<script type="text/javascript"
131src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
132</script>
133      </li>
134      <li>
135        <h2><a href="/errata/5x/">エラッタ情報(5.x)</a>
136            <a href="/errata/5x/errata5x.rdf">
137            <img src="/images/rss.png"></a></h2>
138        <div class="errata">
139        <ul>
140<%
141  require 'rss'
142  url = 'errata/5x/errata5x.rdf'
143  rss = RSS::Parser.parse(url, false)
144  count = 0
145  max_count = 7
146  rss.items.each do |i|
147%>
148<%= "\t  <li><a href=\"#{i.link}\">#{i.title}</a></li>" %>
149<%
150    count += 1
151    if count == max_count
152      break
153    end
154  end
155%>
156          <li><a href="errata/5x/">もっと見る...</a></li>
157        </ul>
158        </div><!-- errata -->
159      </li>
160
161      <li>
162        <h2>VinePlus/5更新情報
163            <a href="/vineplus5news.rdf">
164            <img src="/images/rss.png"></a></h2>
165        <div id="errata">
166        <ul>
167<%
168  require 'rss'
169  url = 'vineplus5news.rdf'
170  rss = RSS::Parser.parse(url, false)
171  count = 0
172  max_count = 7
173  rss.items.each do |i|
174%>
175<%= "\t<li><a href=\"#{i.link}\">#{i.title}</a></li>" %>
176<%
177    count += 1
178    if count == max_count
179      break
180    end
181  end
182%>
183          <li><a href="vineplus5news.html">もっと見る...</a></li>
184        </ul>
185        </div><!-- errata -->
186        </li>
187
188      <li>
189        <h2>VineSeed更新情報
190            <a href="/vineseednews.rdf">
191            <img src="/images/rss.png"></a></h2>
192        <div id="errata">
193        <ul>
194<%
195  require 'rss'
196  url = 'vineseednews.rdf'
197  rss = RSS::Parser.parse(url, false)
198  count = 0
199  max_count = 7
200  rss.items.each do |i|
201%>
202<%= "\t<li><a href=\"#{i.link}\">#{i.title}</a></li>" %>
203<%
204    count += 1
205    if count == max_count
206      break
207    end
208  end
209%>
210          <li><a href="vineseednews.html">もっと見る...</a></li>
211        </ul>
212        </div><!-- errata -->
213        </li>
214
215        <li>
216          <h2><a href="/donation.html">ドネーション</a></h2>
217<!-- Donation by PayPal -->
218<div class="paypal-sidebar">
219<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
220<input type="hidden" name="cmd" value="_s-xclick" />
221<input type="hidden" name="hosted_button_id" value="5823496" />
222<table>
223<tr><td><input type="hidden" name="on0" value="Vine Linux を支援する" />
224Vine Linux を支援する</td></tr><tr><td><select name="os0">
225         <option value="1500">1500 ¥1,500</option>
226         <option value="3000">3000 ¥3,000</option>
227         <option value="5000">5000 ¥5,000</option>
228         <option value="10000">10000 ¥10,000</option>
229         <option value="20,000">20,000 ¥20,000</option>
230         <option value="30,000">30,000 ¥30,000</option>
231</select> </td></tr>
232</table>
233<input type="hidden" name="currency_code" value="JPY" />
234<input type="image"
235       src="https://www.paypal.com/ja_JP/JP/i/btn/btn_paynowCC_LG.gif"
236       border="0" name="submit"
237       alt="PayPal - オンラインで安全・簡単にお支払い" />
238<img alt="" border="0" src="https://www.paypal.com/ja_JP/i/scr/pixel.gif"
239     width="1" height="1" />
240</form>
241</div>
242                        </li>
243                </ul>
244        </div>
245        <!-- end sidebars -->
246
247<%= footer.read %>
Note: See TracBrowser for help on using the repository browser.