forked from rubytaiwan/ruby-taiwan
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Twitter Bootstrap for html and css
- Loading branch information
Showing
54 changed files
with
3,252 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,30 @@ | ||
<%= form_for([:cpanel,@node]) do |f| %> | ||
<%= render 'shared/error_messages', :target => @node %> | ||
|
||
<div class="field"> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :section_id %><br /> | ||
<%= f.select :section_id, Section.all.collect { |s| [s.name,s.id] } %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :sort %><br /> | ||
<%= f.text_field :sort %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :summary %><br /> | ||
<%= f.text_area :summary, :class => "middle",:style => "height:80px;" %> | ||
</div> | ||
<div class="actions"> | ||
<button class="button submit">保存</button> <%= link_to 'Back', cpanel_nodes_path %> | ||
</div> | ||
<fieldset> | ||
<legend></legend> | ||
<%= render 'shared/error_messages', :target => @node %> | ||
<div class="clearfix"> | ||
<%= f.label :name %> | ||
<div class="input"> | ||
<%= f.text_field :name %></div> | ||
</div> | ||
<div class="clearfix"> | ||
<%= f.label :section_id %> | ||
<div class="input"> | ||
<%= f.select :section_id, Section.all.collect { |s| [s.name,s.id] } %></div> | ||
</div> | ||
<div class="clearfix"> | ||
<%= f.label :sort %> | ||
<div class="input"> | ||
<%= f.text_field :sort %></div> | ||
</div> | ||
<div class="clearfix"> | ||
<%= f.label :summary %> | ||
<div class="input"> | ||
<%= f.text_area :summary, :class => "xxlarge",:style => "height:80px;" %> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<button class="btn primary">保存</button> <%= link_to 'Back', cpanel_nodes_path %> | ||
</div> | ||
</fieldset> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
<%= form_for([:cpanel,@photo] , :html => { :enctype => "multipart/form-data" }) do |f| %> | ||
<fieldset> | ||
<legend></legend> | ||
<%= render 'shared/error_messages', :target => @photo %> | ||
|
||
<div class="field"> | ||
<%= f.label :title %><br /> | ||
<%= f.text_field :title %> | ||
<div class="clearfix"> | ||
<%= f.label :title %><div class="input"> | ||
<%= f.text_field :title %></div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :image %><br /> | ||
<%= f.file_field :image %> | ||
<div class="clearfix"> | ||
<%= f.label :image %><div class="input"> | ||
<%= f.file_field :image %></div> | ||
</div> | ||
<div class="actions"> | ||
<button type="submit" class="button submit">上传</button> | ||
<button type="submit" class="btn primary">上传</button> or <%= link_to 'Back', photos_path %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
<h1>Editing photo</h1> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Show', @photo %> | | ||
<%= link_to 'Back', photos_path %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
|
||
<%= render 'form' %> | ||
|
||
<%= link_to 'Back', photos_path %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,26 @@ | ||
<%= form_for(@reply, :url => (@reply.id.blank? ? cpanel_replies_path : cpanel_reply_path(@reply.id))) do |f| %> | ||
<% if @reply.errors.any? %> | ||
<div id="error_explanation"> | ||
<h2><%= pluralize(@reply.errors.count, "error") %> prohibited this reply from being saved:</h2> | ||
<fieldset> | ||
<legend></legend> | ||
<%= render 'shared/error_messages', :target => @reply %> | ||
|
||
<ul> | ||
<% @reply.errors.full_messages.each do |msg| %> | ||
<li><%= msg %></li> | ||
<% end %> | ||
</ul> | ||
<div class="clearfix"> | ||
<%= f.label :body %> | ||
<div class="input"> | ||
<%= f.text_area :body, :class => "long", :style => "height:400px" %> | ||
</div> | ||
<% end %> | ||
|
||
<div class="field"> | ||
<%= @topic.title %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :body %><br /> | ||
<%= f.text_area :body, :class => "long", :style => "height:400px" %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :user_id %><br /> | ||
<%= f.text_field :user_id %> <%= @topic.user.name %> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :state %><br /> | ||
<%= f.text_field :state, Reply::STATE %> | ||
<div class="clearfix"> | ||
<%= f.label :user_id %> | ||
<div class="input"> | ||
<%= f.text_field :user_id %> <%= @reply.user.name %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :source %><br /> | ||
<%= f.text_field :source %> | ||
<div class="clearfix"> | ||
<%= f.label :source %><div class="input"> | ||
<%= f.text_field :source %></div> | ||
</div> | ||
<div class="actions"> | ||
<button class="submit">保存</button> | ||
<button type="submit" class="btn primary">保存</button> or | ||
<%= link_to 'Back', cpanel_replies_path %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,5 +24,5 @@ | |
</tr> | ||
<% end %> | ||
</table> | ||
<%= will_paginate @replies %> | ||
<%= will_paginate1 @replies %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
<%= form_for([:cpanel,@section]) do |f| %> | ||
<fieldset> | ||
<legend></legend> | ||
<%= render 'shared/error_messages', :target => @section %> | ||
|
||
<div class="field"> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name %> | ||
<div class="clearfix"> | ||
<%= f.label :name %> | ||
<div class="input"> | ||
<%= f.text_field :name %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :sort %><br /> | ||
<%= f.text_field :sort %> | ||
<div class="clearfix"> | ||
<%= f.label :sort %> | ||
<div class="input"> | ||
<%= f.text_field :sort %> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<button class="button submit">保存</button> <%= link_to 'Back', cpanel_sections_path %> | ||
<button class="btn primary">保存</button> <%= link_to 'Back', cpanel_sections_path %> | ||
</div> | ||
</fieldset> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,46 @@ | ||
<%= form_for([:cpanel,@topic]) do |f| %> | ||
<fieldset> | ||
<legend></legend> | ||
<%= render 'shared/error_messages', :target => @topic %> | ||
|
||
<div class="field"> | ||
<%= f.label :title %><br /> | ||
<%= f.text_field :title, :class => "middle" %> | ||
<div class="clearfix"> | ||
<%= f.label :title %> | ||
<div class="input"> | ||
<%= f.text_field :title, :class => "span10" %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :node_id %><br /> | ||
<div class="clearfix"> | ||
<%= f.label :node_id %> | ||
<div class="input"> | ||
<%= f.select :node_id, Node.all.collect { |n| [n.name,n.id] } %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :body %><br /> | ||
<%= f.text_area :body, :class => "long", :style => "height:400px" %> | ||
<div class="clearfix"> | ||
<%= f.label :body %> | ||
<div class="input"> | ||
<%= f.text_area :body, :class => "span13", :style => "height:400px" %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :user_id %><br /> | ||
<div class="clearfix"> | ||
<%= f.label :user_id %> | ||
<div class="input"> | ||
<%= f.text_field :user_id %> <%= @topic.user.name if @topic.user %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :last_reply_user_id %><br /> | ||
<div class="clearfix"> | ||
<%= f.label :last_reply_user_id %> | ||
<div class="input"> | ||
<%= f.text_field :last_reply_user_id %> | ||
</div> | ||
</div> | ||
<div class="field"> | ||
<%= f.label :source %><br /> | ||
<div class="clearfix"> | ||
<%= f.label :source %> | ||
<div class="input"> | ||
<%= f.text_field :source %> | ||
</div> | ||
</div> | ||
<div class="actions"> | ||
<button class="submit">保存</button> | ||
<button class="btn primary">保存</button> or | ||
<%= link_to 'Back', cpanel_topics_path %> | ||
</div> | ||
<% end %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
|
||
<%= render 'form' %> | ||
|
||
<%= link_to 'Back', cpanel_topics_path %> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,3 @@ | |
<h1>New topic</h1> | ||
|
||
<%= render 'form' %> | ||
<%= link_to 'Back', cpanel_topics_path %> |
Oops, something went wrong.