Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Arena Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GaiaXalter
Ygopro Arena Web
Commits
051882e1
Commit
051882e1
authored
Mar 31, 2011
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
7d0915d7
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
191 additions
and
32 deletions
+191
-32
app/models/board.rb
app/models/board.rb
+5
-0
app/themes/lotus/boards/index.html.erb
app/themes/lotus/boards/index.html.erb
+6
-31
log/development.log
log/development.log
+179
-0
tmp/pids/server.pid
tmp/pids/server.pid
+1
-1
No files found.
app/models/board.rb
View file @
051882e1
class
Board
<
ActiveRecord
::
Base
belongs_to
:superboard
,
:foreign_key
=>
:super_id
,
:class_name
=>
"::Board"
has_many
:subboards
,
:foreign_key
=>
:super_id
,
:class_name
=>
"::Board"
#, :as => :boards
#why it doesn't work?
...
...
@@ -9,6 +10,10 @@ class Board < ActiveRecord::Base
def
to_s
"<a href=
\"
/boards/
#{
id
}
\"
>
#{
name
}
</a>"
.
html_safe
end
alias_method
:logo_url
,
:logo
def
logo
"<a href=
\"
/boards/
#{
id
}
\"
><img src=
\"
#{
logo_url
}
\"
/></a>"
.
html_safe
end
#alias topics_with_deleted topics
#def topics
# topics_with_deleted.where({:deleted => false}).order('').order('name')
...
...
app/themes/lotus/boards/index.html.erb
View file @
051882e1
...
...
@@ -18,6 +18,8 @@
</tr>
</table>
</div>
<%
@boards
.
each
do
|
board
|
%>
<div
id=
b2_2
>
<table
width=
"100%"
height=
"93px"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
...
...
@@ -30,41 +32,13 @@
<td
width:
"
686px
"
>
<div
id=
b2_2_d2
>
<div
id=
b2_2_d2_inf1
>
第一次測試版塊
</div>
<div
id=
b2_2_d2_inf2
>
版塊介紹:
</div>
<div
id=
b2_2_d2_inf3
>
主題:53416 回覆:4356834 post
</div>
</div>
</td>
<td
width=
"283px"
>
<div
id=
b2_2_d3_1
>
</div>
<div
id=
b2_2_d3_2
>
</div>
</td>
</tr>
</table>
</div>
<div
id=
b2_3
>
<table
width=
"100%"
height=
"93px"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
>
<tr>
<td
width=
"171px"
>
<div
id=
b2_2_d1
>
<div
id=
b2_2_d1_avatar
>
</div>
</div>
</td>
<td
width:
"
686px
"
>
<div
id=
b2_2_d2
>
<div
id=
b2_2_d2_inf1
>
<%=
board
%>
</div>
<div
id=
b2_2_d2_inf2
>
<%=
board
.
introduction
%>
</div>
<div
id=
b2_2_d2_inf3
>
<%=
t
'board.topic'
%>
:
<%=
board
.
topics
.
count
%>
<%=
t
'board.post'
%>
:
<%=
board
.
posts
.
count
%>
</div>
</div>
</td>
...
...
@@ -77,6 +51,7 @@
</tr>
</table>
</div>
<%
end
%>
</div>
<div
class=
"box ui-widget-content ui-corner-all ui-helper-clearfix"
>
<div
id=
"fuzhu"
>
...
...
log/development.log
View file @
051882e1
This diff is collapsed.
Click to expand it.
tmp/pids/server.pid
View file @
051882e1
1812
\ No newline at end of file
2360
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment