Create a tournament table to use with tablesorter.
This commit is contained in:
parent
12211ecc61
commit
d6df87c13d
@ -138,7 +138,7 @@ module LORChess
|
|||||||
|
|
||||||
def to_html
|
def to_html
|
||||||
|
|
||||||
@buffer << "<table class=\"table table-bordered tournament\">\n"
|
@buffer << "<table class=\"table table-bordered tournament tablesorter\">\n"
|
||||||
@buffer << " <caption><strong>LOR Chess : Осень-2013</strong><caption>\n"
|
@buffer << " <caption><strong>LOR Chess : Осень-2013</strong><caption>\n"
|
||||||
@buffer << " <thead>\n"
|
@buffer << " <thead>\n"
|
||||||
@buffer << " <tr>\n"
|
@buffer << " <tr>\n"
|
||||||
@ -147,7 +147,7 @@ module LORChess
|
|||||||
@buffer << " <th>elo*</th>\n"
|
@buffer << " <th>elo*</th>\n"
|
||||||
|
|
||||||
@@dim.times do |i|
|
@@dim.times do |i|
|
||||||
@buffer << " <th>" << (i + 1).to_s << "</th>\n"
|
@buffer << " <th class=\"{sorter: false}\">" << (i + 1).to_s << "</th>\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
@buffer << " <th>Игры</th>\n"
|
@buffer << " <th>Игры</th>\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user