Permalink
Browse files

battles dont show battles without players, and only show gc servers a…

…s standard
  • Loading branch information...
1 parent af783e5 commit f2050adc5acce735eb0c432487bb4b4e245a16a6 @dalkvist committed Mar 16, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/bf3/core.clj
View
@@ -458,7 +458,9 @@
(html5 (battles)))
-(defpage "/gc/battles/" {:keys [host server] :or {server false host ((:headers (req/ring-request)) "host")}}
+(defpage "/gc/battles/" {:keys [testservers host server] :or {testservers false
+ server false
+ host ((:headers (req/ring-request)) "host")}}
(battle-layout
(javascript-tag (str "$(document).ready(function(){"
"$('a.toggle.users').click(function(){"
@@ -482,6 +484,8 @@
(into [:ul.battles]
(for [battle btls]
(when (and (or (false? server) (= server (:server battle)))
+ (or (true? testservers)
+ (some #(= % (:server battle)) (vals bf3.bl/server-ids)))
(< 15 (count (:live battle))))
[:li.battle
(into [:div.info]

0 comments on commit f2050ad

Please sign in to comment.