Web appl using RoR 3.2.14
修订版 | aa830ce82360178b6e287923767df7abb2f327e9 (tree) |
---|---|
时间 | 2013-09-07 05:04:44 |
作者 | unknown <Yoichi.K@VENU...> |
Commiter | unknown |
after work on Sept. 6
@@ -17,7 +17,7 @@ body { | ||
17 | 17 | |
18 | 18 | img {border: 0;} |
19 | 19 | h1 { |
20 | - margin: 0 0 0.5em 0; | |
20 | + margin: 0.2em 0 0.2em 0; | |
21 | 21 | padding: 6px; |
22 | 22 | border-bottom: 2px solid #0089be; |
23 | 23 | color: #0089be; |
@@ -72,22 +72,31 @@ p#copyright { | ||
72 | 72 | font-size: small; |
73 | 73 | background-color: #fffff; |
74 | 74 | } |
75 | -p#logout { | |
75 | +div#logout { | |
76 | 76 | margin: 0; |
77 | - padding: 10px; | |
77 | + padding: 5px; | |
78 | 78 | color: #000000; |
79 | - font-size: medium; | |
80 | - background-color: #ffff99; | |
79 | + font-size: small; | |
80 | + font-weight: bold; | |
81 | + background-color: #ffffff; | |
81 | 82 | } |
82 | 83 | div.header { |
83 | 84 | margin: 0; |
84 | - padding: 5px; | |
85 | + padding: 0px; | |
85 | 86 | color: ivory; |
86 | 87 | font-size: large; |
87 | 88 | font-weight: bold; |
88 | 89 | background-color: azure; |
89 | 90 | } |
90 | -div.navi { | |
91 | +div#navigator { | |
92 | + margin: 5; | |
93 | + padding: 5px; | |
94 | + color: navy; | |
95 | + font-size: medium; | |
96 | + font-weight: bold; | |
97 | + background-color: #FFF; | |
98 | +} | |
99 | +div.toolbar { | |
91 | 100 | margin: 0; |
92 | 101 | padding: 5px; |
93 | 102 | color: deepskyblue; |
@@ -4,7 +4,7 @@ class MountainsController < ApplicationController | ||
4 | 4 | def index |
5 | 5 | # @mountains = Mountain.all |
6 | 6 | @mountains = Mountain.order('id ASC'). |
7 | - paginate(:page => params[:page], :per_page => 20) | |
7 | + paginate(:page => params[:page], :per_page => 10) | |
8 | 8 | |
9 | 9 | respond_to do |format| |
10 | 10 | format.html # index.html.erb |
@@ -0,0 +1,8 @@ | ||
1 | +<strong><%= t 'side.title' %></strong> | |
2 | +<ul> | |
3 | + <li><%= link_to "Home", root_path %></li> | |
4 | + <li><%= link_to "Mountain", mountains_path %></li> | |
5 | + <p id="logout"> | |
6 | + <%= link_to 'ログアウト', logout_path %> | |
7 | + </p> | |
8 | +</ul> |
@@ -0,0 +1,29 @@ | ||
1 | +<img src="top_banner.jpg" width=640 border=0> | |
2 | +<div id="logout" align="right"> | |
3 | + <table width=640 border=0> | |
4 | + <tr> | |
5 | + <td width=560> | |
6 | + </td> | |
7 | + <td width=80> | |
8 | + <%= link_to 'ログアウト', logout_path %> | |
9 | + </td> | |
10 | + </tr> | |
11 | + </table> | |
12 | +</div> | |
13 | +<div id="navigator"> | |
14 | + <table width=640 border=0 bgcolor="yellowgreen"> | |
15 | + <tr> | |
16 | + <td width="160"> | |
17 | + <b><%= link_to('ホーム', root_path) %></b> | |
18 | + </td><td width="160"> | |
19 | + <b><%= link_to('山のリスト', mountains_path) %></b> | |
20 | + </td><td width="160"> | |
21 | + <b><%= link_to('山行記録', records_path) %></b> | |
22 | + </td><td width="160"> | |
23 | + <b><%= link_to('ブログ', blogs_path) %></b> | |
24 | + </td><td> | |
25 | + </td> | |
26 | + </tr> | |
27 | + </table> | |
28 | +</div> | |
29 | +</ul> |
@@ -1,6 +1,8 @@ | ||
1 | 1 | <h1>Editing blog</h1> |
2 | +Kdiv id="toolbar"> | |
3 | + <%= link_to 'Show', @blog %> | | |
4 | + <%= link_to 'Back', blogs_path %> | |
5 | +</div> | |
2 | 6 | |
3 | 7 | <%= render 'form' %> |
4 | 8 | |
5 | -<%= link_to 'Show', @blog %> | | |
6 | -<%= link_to 'Back', blogs_path %> |
@@ -1,5 +1,7 @@ | ||
1 | 1 | <h1>Listing blogs</h1> |
2 | -<%= link_to 'New Blog', new_blog_path %> | |
2 | +<div id="toolbar"> | |
3 | + <%= link_to 'New Blog', new_blog_path %> | |
4 | +</div> | |
3 | 5 | <hr /> |
4 | 6 | |
5 | 7 | <table> |
@@ -1,5 +1,7 @@ | ||
1 | 1 | <h1>New blog</h1> |
2 | +<div id="toolbar"> | |
3 | + <%= link_to 'Back', blogs_path %> | |
4 | +</div> | |
2 | 5 | |
3 | 6 | <%= render 'form' %> |
4 | 7 | |
5 | -<%= link_to 'Back', blogs_path %> |
@@ -1,11 +1,16 @@ | ||
1 | 1 | <h1>Kisuge's Top Page </h1> |
2 | 2 | |
3 | -<p> | |
3 | +<p align="right"> | |
4 | 4 | <%= link_to 'Log-in', login_path %>ログイン |
5 | 5 | </p> |
6 | - | |
6 | +<p>このサイトには、次のメニューがあります。</p> | |
7 | 7 | <ul> |
8 | - <li><a href="users/"><b>メンバー</b></a></li> | |
9 | 8 | <li><a href="mountains/"><b>山のリスト</b></a></li> |
10 | - <li><a href="blogs/"><b>ブログのリスト</b></a></li> | |
9 | + <li><a href="records/"><b>山行記録</b></a></li> | |
10 | + <li><a href="blogs/"><b>ブログ</b></a></li> | |
11 | + <li><a href="users/"><b>メンバー</b></a></li> | |
11 | 12 | </ul> |
13 | +<p>《山のリスト》には、日本百名山、日本200名山、日本300名山、日本の山1000を網羅した山の情報が掲載されております。(全部で1,015座あります。) | |
14 | +<p>《山行記録》は、会員登録されたユーザーが、ご自身の山行記録を作成するページです。この機能をお使いになるには、あらかじめログインを行ってください。</p> | |
15 | +<p>《ブログ》では、山行記、山のよもやま話、エッセイなどお好きな記事を投稿できます。投稿するには、あらかじめログインを行ってください。閲覧はログインしていなくても可能です。</p> | |
16 | + |
@@ -1,14 +0,0 @@ | ||
1 | -<div class="header"> | |
2 | -<table> | |
3 | - <tr> | |
4 | - <td> | |
5 | - <div> | |
6 | - </div> | |
7 | - <td> | |
8 | - <div> | |
9 | - <p id="logout"><%= link_to 'ログアウト', logout_path %></p> | |
10 | - </div> | |
11 | - </td> | |
12 | - </tr> | |
13 | -</table> | |
14 | -</div> |
@@ -8,8 +8,10 @@ | ||
8 | 8 | <%= favicon_link_tag '/favicon.gif', :type => "image/gif" %> |
9 | 9 | </head> |
10 | 10 | <body> |
11 | -<%= render 'navigater' %> | |
12 | -<%= content_for?(:content) ? yield(:content) : yield %> | |
11 | +<div id="side"> | |
12 | + <%= render "side" %> | |
13 | +</div> | |
14 | +<%= yield %> | |
13 | 15 | |
14 | 16 | <hr /> |
15 | 17 | <table> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'mountains.title.edit' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Show', @mountain %> | |
4 | 4 | <%= link_to 'Back', mountains_path %> |
5 | 5 | </div> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'mountains.title.list' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to '新規作成', new_mountain_path %> |
4 | 4 | </div> |
5 | 5 | <hr /> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'mountains.title.new' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Back', mountains_path %> |
4 | 4 | </div> |
5 | 5 | <hr /> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'mountains.title.show' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Edit', edit_mountain_path(@mountain) %> | |
4 | 4 | <%= link_to 'Back', mountains_path %> |
5 | 5 | </div> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'records.title.edit' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Show', @record %> | |
4 | 4 | <%= link_to 'Back', records_path %> |
5 | 5 | </div> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'records.title.list' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'navi.new', new_record_path %> |
4 | 4 | <div align="right"> |
5 | 5 | <%= link_to 'トップページへ', { :controller => 'top', :action => 'index' } %> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'records.title.new' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Back', records_path %> |
4 | 4 | </div> |
5 | 5 | <hr /> |
@@ -1,5 +1,5 @@ | ||
1 | 1 | <h1><%= t 'records.title.show' %></h1> |
2 | -<div class="navi"> | |
2 | +<div class="toolbar"> | |
3 | 3 | <%= link_to 'Edit', edit_record_path(@record) %> | |
4 | 4 | <%= link_to 'Back', records_path %> |
5 | 5 | </div> |
@@ -1,6 +1,8 @@ | ||
1 | 1 | <h1><%= t 'users.title.edit' %></h1> |
2 | -<%= link_to 'Show', @user %> | | |
3 | -<%= link_to 'Back', users_path %> | |
2 | +<div id="toolbar"> | |
3 | + <%= link_to 'Show', @user %> | | |
4 | + <%= link_to 'Back', users_path %> | |
5 | +</div> | |
4 | 6 | <hr /> |
5 | 7 | |
6 | 8 | <%= render 'form' %> |
@@ -1,6 +1,6 @@ | ||
1 | 1 | <h1><%= t 'users.title.list' %></h1> |
2 | 2 | |
3 | -<div class="navi"> | |
3 | +<div class="toolbar"> | |
4 | 4 | <%= link_to 'New User', new_user_path %> |
5 | 5 | </div> |
6 | 6 | <p id="notice"><%= notice %></p> |
@@ -1,5 +1,7 @@ | ||
1 | 1 | <h1><%= t 'users.title.new' %></h1> |
2 | -<%= link_to 'Back', users_path %> | |
2 | +<div id="toolbar"> | |
3 | + <%= link_to 'Back', users_path %> | |
4 | +</div> | |
3 | 5 | <hr /> |
4 | 6 | |
5 | 7 | <%= render 'form' %> |
@@ -1,4 +1,4 @@ | ||
1 | -<div class="navi"> | |
1 | +<div class="toolbar"> | |
2 | 2 | <%= link_to 'Edit', edit_user_path(@user) %> | |
3 | 3 | <%= link_to 'Back', users_path %> |
4 | 4 | </div> |
@@ -281,6 +281,13 @@ ja: | ||
281 | 281 | title: キスゲプロジェクト |
282 | 282 | footer: Powered by Ruby on Rails |
283 | 283 | copyright: (C)Yoichi Kanno, 2013 |
284 | + side: | |
285 | + title: メニュー | |
286 | + label: | |
287 | + top: ホーム | |
288 | + mountains: 山の一覧 | |
289 | + records: 山行記録 | |
290 | + blogs: ブログ | |
284 | 291 | navi: |
285 | 292 | back: 一覧表に戻る |
286 | 293 | show: 表示 |
@@ -1,6 +1,7 @@ | ||
1 | 1 | Kisuge::Application.routes.draw do |
2 | 2 | |
3 | 3 | root :to => 'home#index' |
4 | + get "top" => 'home#index' | |
4 | 5 | get "admin/index" => 'admin#index' |
5 | 6 | |
6 | 7 | post 'login/auth' => 'login#auth' |
@@ -38,8 +39,9 @@ Kisuge::Application.routes.draw do | ||
38 | 39 | resources :records do |
39 | 40 | collection do |
40 | 41 | get 'conquer' => 'records#conquer' |
42 | + get 'top' => 'records#index' | |
41 | 43 | end |
42 | - get 'index' | |
44 | + get 'index' => 'records#index' | |
43 | 45 | get 'show' |
44 | 46 | post 'new' |
45 | 47 | post 'edit' |