mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-10 07:05:35 +00:00
UI tweaking for tables, cleaner layout
This commit is contained in:
@@ -7,12 +7,13 @@ angular.module('app').directive('componentSelect', function () {
|
||||
for (var i = 0; i < opts.length; i++) {
|
||||
var o = opts[i];
|
||||
var id = o.id || (o.class + o.rating); // Common components' ID is their class and rating
|
||||
list.push('<li class="', o.name? 'lc' : 'c');
|
||||
|
||||
if(wrap && o.class != prevClass) {
|
||||
list.push(' cl');
|
||||
if(i > 0 && opts.length > 3 && o.class != prevClass && (o.rating != prevRating || o.mode)) {
|
||||
list.push('<br/>');
|
||||
}
|
||||
|
||||
list.push('<li class="', o.name? 'lc' : 'c');
|
||||
|
||||
if (cid == o.id) {
|
||||
list.push(' active');
|
||||
}
|
||||
@@ -25,13 +26,11 @@ angular.module('app').directive('componentSelect', function () {
|
||||
|
||||
list.push(o.class, o.rating);
|
||||
|
||||
if(o.mode) {
|
||||
list.push('/' + o.mode);
|
||||
if(o.missile) {
|
||||
list.push(o.missile);
|
||||
}
|
||||
if(o.missile) {
|
||||
list.push('/' + o.missile);
|
||||
}
|
||||
|
||||
|
||||
if(o.name) {
|
||||
list.push(' ' + o.name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user