|
@@ -1615,14 +1615,12 @@ class DistrosTable(ToasterTable):
|
|
|
hidden=True,
|
|
|
field_name="layer_version__get_vcs_reference")
|
|
|
|
|
|
- wrtemplate_file_template = '''<code>conf/machine/{{data.name}}.conf</code>
|
|
|
- <a href="{{data.get_vcs_machine_file_link_url}}" target="_blank"><span class="glyphicon glyphicon-new-window"></i></a>'''
|
|
|
-
|
|
|
+ distro_file_template = '''<code>conf/distro/{{data.name}}.conf</code>
|
|
|
+ {% if 'None' not in data.get_vcs_distro_file_link_url %}<a href="{{data.get_vcs_distro_file_link_url}}" target="_blank"><span class="glyphicon glyphicon-new-window"></i></a>{% endif %}'''
|
|
|
self.add_column(title="Distro file",
|
|
|
hidden=True,
|
|
|
static_data_name="templatefile",
|
|
|
- static_data_template=wrtemplate_file_template)
|
|
|
-
|
|
|
+ static_data_template=distro_file_template)
|
|
|
|
|
|
self.add_column(title="Select",
|
|
|
help_text="Sets the selected distro to the project",
|