Commit 0fa1803b authored by 神楽坂玲奈's avatar 神楽坂玲奈

论坛附件yrp ydk deck播放, 换行符

parent da8298ea
source 'http://rubygems.org' source 'http://rubygems.org'
gem 'rails' gem 'rails'
gem "paperclip" gem "paperclip"
gem 'http_accept_language' gem 'http_accept_language'
gem 'bb-ruby' gem 'bb-ruby'
gem 'devise' gem 'devise'
gem 'devise-i18n' gem 'devise-i18n'
gem 'kaminari' gem 'kaminari'
gem 'rails_admin' gem 'rails_admin'
# Bundle edge Rails instead: # Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git' # gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql2' gem 'mysql2'
# Gems used only for assets and not required # Gems used only for assets and not required
# in production environments by default. # in production environments by default.
group :assets do group :assets do
gem 'sass-rails' gem 'sass-rails'
gem 'coffee-rails' gem 'coffee-rails'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes # See https://github.com/sstephenson/execjs#readme for more supported runtimes
unless RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"] if RUBY_PLATFORM["mswin"] or RUBY_PLATFORM["ming"]
gem 'therubyracer' gem 'therubyrhino'
end else
gem 'therubyracer'
gem 'uglifier' end
end
gem 'uglifier'
gem 'jquery-rails' end
# To use ActiveModel has_secure_password gem 'jquery-rails'
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use ActiveModel has_secure_password
# To use Jbuilder templates for JSON # gem 'bcrypt-ruby', '~> 3.0.0'
# gem 'jbuilder'
# To use Jbuilder templates for JSON
# Use unicorn as the app server # gem 'jbuilder'
# gem 'unicorn'
# Use unicorn as the app server
# Deploy with Capistrano # gem 'unicorn'
# gem 'capistrano'
# Deploy with Capistrano
# To use debugger # gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug' # gem 'ruby-debug19', :require => 'ruby-debug'
\ No newline at end of file
...@@ -136,6 +136,7 @@ GEM ...@@ -136,6 +136,7 @@ GEM
hike (~> 1.2) hike (~> 1.2)
rack (~> 1.0) rack (~> 1.0)
tilt (~> 1.1, != 1.3.0) tilt (~> 1.1, != 1.3.0)
therubyrhino (1.73.4)
thor (0.14.6) thor (0.14.6)
tilt (1.3.3) tilt (1.3.3)
treetop (1.4.10) treetop (1.4.10)
...@@ -165,4 +166,5 @@ DEPENDENCIES ...@@ -165,4 +166,5 @@ DEPENDENCIES
rails rails
rails_admin rails_admin
sass-rails sass-rails
therubyrhino
uglifier uglifier
This diff is collapsed.
<li>
<%= link_to attachment.data.original_filename, attachment.data.url %>
<% case %>
<% when attachment.data.content_type[0, 5] == "image" %>
<div><%= image_tag attachment.data.url %></div>
<% else %>
<% case File.extname attachment.data.original_filename %>
<% when ".yrp" %>
<span><%= link_to "播放", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".ydk" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% when ".deck" %>
<span><%= link_to "编辑", 'mycard://' + request.env['HTTP_HOST'] + URI.escape(URI.escape(attachment.data.url nil, timestamp: false )) %></span>
<% end %>
<% end %>
</li>
\ No newline at end of file
<h1>Listing comments</h1> <h1>Listing comments</h1>
<table> <table>
<tr> <tr>
<th>Post</th> <th>Post</th>
<th>User</th> <th>User</th>
<th>Content</th> <th>Content</th>
<th></th> <th></th>
<th></th> <th></th>
<th></th> <th></th>
</tr> </tr>
<% @comments.each do |comment| %> <% @comments.each do |comment| %>
<tr> <tr>
<td><%= comment.post %></td> <td><%= comment.post %></td>
<td><%= comment.user %></td> <td><%= comment.user %></td>
<td><%= comment.content %></td> <td><%= comment.content %></td>
<td><%= link_to 'Show', comment %></td> <td><%= link_to 'Show', comment %></td>
<td><%= link_to 'Edit', edit_comment_path(comment) %></td> <td><%= link_to 'Edit', edit_comment_path(comment) %></td>
<td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td> <td><%= link_to 'Destroy', comment, :confirm => 'Are you sure?', :method => :delete %></td>
</tr> </tr>
<% end %> <% end %>
</table> </table>
<br /> <br />
<%= link_to 'New Comment', new_comment_path %> <%= link_to 'New Comment', new_comment_path %>
This diff is collapsed.
...@@ -373,7 +373,4 @@ zh-CN: ...@@ -373,7 +373,4 @@ zh-CN:
content: "正文" content: "正文"
submit: "提交" submit: "提交"
private: "仅楼主可见" private: "仅楼主可见"
anonymous: "匿名发帖" anonymous: "匿名发帖"
tournament: \ No newline at end of file
location:
qun: "QQ群"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment