diff --git a/rhodecode/templates/debug_style/icons.html b/rhodecode/templates/debug_style/icons.html --- a/rhodecode/templates/debug_style/icons.html +++ b/rhodecode/templates/debug_style/icons.html @@ -52,49 +52,37 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + <% + import os + import string + with open(os.path.abspath('./rhodecode/public/css/rcicons.less')) as f: + source = f.read() + start = source.find('// -- ICON CLASSES -- //') + end = source.find('// -- END ICON CLASSES -- //') + source = source[start:end] + + ico_data = [] + for line in source.splitlines(): + line = line.split(':before') + line = map(string.strip, line) + if len(line) in [2, 3]: + if len(line) == 2: + ico_cls, ico_code = line + else: + ico_cls, ico_code, rest = line + + ico_code = ico_code[:ico_code.find('/*')] + ico_data.append([ico_cls, ico_code]) + + %> + % for ico_cls, ico_code in ico_data: + + + + + % endfor +
icon-plus 0xe813 icon-minus 0xe814 icon-remove 0xe815 icon-fork 0xe811 icon-bookmark 0xe803
icon-branch 0xe804 icon-merge 0xe833 icon-tag 0xe805 icon-lock 0xe806 icon-unlock 0xe807
icon-delete 0xe800 icon-false 0xe800 icon-ok 0xe801 icon-true 0xe801 icon-group 0xe80f
icon-hg 0xe82d icon-git 0xe82a icon-svn 0xe82e icon-folder 0xe810 icon-rhodecode 0xe831
icon-more 0xe812 icon-comment 0xe802 icon-comment-add 0xe82f icon-comment-toggle 0xe830 icon-feed 0xe808
icon-right 0xe80a icon-left 0xe809 icon-arrow_down 0xe80b icon-arrow_up 0xe832
+ ${ico_cls}${ico_code}