File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -437,9 +437,9 @@ def __str__(self):
437437 return '{0} {1}' .format (self .display_name , self .version )
438438
439439 @property
440- def imgname (self ):
440+ def preview_image_path (self ):
441441 filepath = 'images/themes/{0}.png' .format (self .name )
442- imagePath = settings .STATIC_ROOT + '/' + filepath ;
442+ imagePath = settings .STATIC_ROOT + '/' + filepath
443443
444444 if os .path .exists (imagePath ):
445445 return filepath
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ <h2>Available Themes</h2>
4848 < h3 class ="card-title "> {{ theme }}</ h3 >
4949 </ div >
5050 < div class ="card-body ">
51- {% if theme.imgname %}
51+ {% if theme.preview_image_path %}
5252 < div class ="pull-right thumbnail ">
53- < a href ="{% static theme.imgname %} " class ="colorbox " title ="{{theme.name}} theme ">
54- < img src ="{% static theme.imgname %} " alt ="{{theme.display_name}} thumbnail " class ="themeimg " />
53+ < a href ="{% static theme.preview_image_path %} " class ="colorbox " title ="{{theme.name}} theme ">
54+ < img src ="{% static theme.preview_image_path %} " alt ="{{theme.display_name}} thumbnail " class ="themeimg " />
5555 </ a >
5656 </ div >
5757 {% endif %}
You can’t perform that action at this time.
0 commit comments