Achievements:

* display criterium-Ids for everyone on detail page
 * unified display with subitems on item detail page
This commit is contained in:
Sarjuuk
2015-08-04 16:04:55 +02:00
parent e28c00ccda
commit ef686c9c57
3 changed files with 4 additions and 12 deletions

View File

@@ -171,10 +171,6 @@ h5 a.icontiny span { text-decoration:none !important; }
width: 47%;
}
.random-enchantments span{
cursor: help;
}
h1.h1-icon {
padding-top: 5px !important;
}

View File

@@ -37,7 +37,7 @@ foreach ($this->criteria['data'] as $i => $cr):
echo '<ul><li><var>&nbsp;</var></li></ul>';
endif;
echo '</th><td>';
echo '</th><td><span class="tip" title="ID'.Lang::main('colon').$cr['id'].'">';
if (!empty($cr['link'])):
echo '<a href="'.$cr['link']['href'].'"'.(isset($cr['link']['quality']) ? ' class="q'.$cr['link']['quality'].'"' : null).'>'.Util::htmlEscape($cr['link']['text']).'</a>';
@@ -51,11 +51,7 @@ foreach ($this->criteria['data'] as $i => $cr):
echo ' '.$cr['extraText'];
endif;
if (User::isInGroup(U_GROUP_STAFF)):
echo ' <small title="'.Lang::achievement('criteriaType').' '.$cr['type'].'" class="q0">['.$cr['id'].']</small>';
endif;
echo '</td></tr>';
echo '</span></td></tr>';
// every odd number of elements
if ($i + 1 == round(count($this->criteria['data']) / 2)):

View File

@@ -48,7 +48,7 @@ if (!empty($this->subItems)):
$eText[] = '<a style="text-decoration:none; color:#CCCCCC;" href="?enchantment='.$eId.'">'.$txt.'</a>';
endforeach;
echo ' <li><div><span title="ID'.Lang::main('colon').$this->subItems['randIds'][$k].'" class="q'.$this->subItems['quality'].'">...'.$i['name'].'</span>';
echo ' <li><div><span title="ID'.Lang::main('colon').$this->subItems['randIds'][$k].'" class="tip q'.$this->subItems['quality'].'">...'.$i['name'].'</span>';
echo ' <small class="q0">'.sprintf(Lang::item('_chance'), $i['chance']).'</small><br />'.implode(', ', $eText).'</div></li>';
endif;
endforeach;
@@ -68,7 +68,7 @@ if (!empty($this->subItems)):
$eText[] = '<a style="text-decoration:none; color:#CCCCCC;" href="?enchantment='.$eId.'">'.$txt.'</a>';
endforeach;
echo ' <li><div><span title="ID'.Lang::main('colon').$this->subItems['randIds'][$k].'" class="q'.$this->subItems['quality'].'">...'.$i['name'].'</span>';
echo ' <li><div><span title="ID'.Lang::main('colon').$this->subItems['randIds'][$k].'" class="tip q'.$this->subItems['quality'].'">...'.$i['name'].'</span>';
echo ' <small class="q0">'.sprintf(Lang::item('_chance'), $i['chance']).'</small><br />'.implode(', ', $eText).'</div></li>';
endif;
endforeach;