add getter
added getter function for field_cost.get_colors() also added code to add a "back to top" link to each card
This commit is contained in:
parent
aeb2ff930c
commit
353910ef48
1 changed files with 4 additions and 1 deletions
|
@ -747,7 +747,7 @@ class Card:
|
||||||
#force for_html to false to create tootip with forum spoiler
|
#force for_html to false to create tootip with forum spoiler
|
||||||
outstr += ('<div class="hover_img"><a href="#">[F]</a> <span><p>'
|
outstr += ('<div class="hover_img"><a href="#">[F]</a> <span><p>'
|
||||||
+ self.format(gatherer=gatherer, for_forum=for_forum, for_html=False, vdump=vdump).replace('\n', '<br>')
|
+ self.format(gatherer=gatherer, for_forum=for_forum, for_html=False, vdump=vdump).replace('\n', '<br>')
|
||||||
+ '</p></span></div>')
|
+ '</p></span></div><a href="#top" style="float: right;">back to top</a>')
|
||||||
|
|
||||||
outstr += linebreak
|
outstr += linebreak
|
||||||
|
|
||||||
|
@ -1026,5 +1026,8 @@ class Card:
|
||||||
|
|
||||||
return outstr
|
return outstr
|
||||||
|
|
||||||
|
def get_colors(self):
|
||||||
|
return self.__dict__[field_cost].get_colors()
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue