add phobos link for each env in agent
using customer filter instead of additional for loop
add is pinterest check for host details display
MODIFY
deploy-board/deploy_board/templates/hosts/host_details.html
deploy-board/deploy_board/templates/hosts/host_details.html
<div class="panel panel-default">
{% include "panel_heading.tmpl" with panel_title="Agent Details" panel_body_id="agentDetailsId" direction="down" copy_host_name_button=True %}
<div id="agentDetailsId" class="collapse in panel-body">
-
{% for agent_wrapper in agent_wrappers %}
- {% with env=agent_wrapper.env agent=agent_wrapper.agent %}
- {% include "hosts/host_details.tmpl" with agent=agent env=env%}
+ {% with env=agent_wrapper.env agent=agent_wrapper.agent hostdetailsvalue=host_details.items|lookup:"Phobos Link" %}
+ {% include "hosts/host_details.tmpl" with agent=agent env=env hostdetailsvalue=hostdetailsvalue%}
{% endwith %}
{% endfor %}
-
</div>
</div>
{% endif %}

MODIFY
deploy-board/deploy_board/templates/hosts/host_details.tmpl
deploy-board/deploy_board/templates/hosts/host_details.tmpl
<td>{{ agent.failCount }}</td>
</tr>
<tr>
- <td>Error Message</td>
+ <td>Error Message
+ {% if pinterest %}
+ <a href="{{ hostdetailsvalue }}/log/deploylog?file={{env.envName}}.log">Full deploy log for {{env.envName}}</a>
+ {% endif %}
+ </td>
<td><pre>{{ agent_wrapper.error }}</pre></td>
</tr>
</table>

MODIFY
deploy-board/deploy_board/webapp/templatetags/utils.py
deploy-board/deploy_board/webapp/templatetags/utils.py
@@ -1044,3 +1044,7 @@ def convertConfigHistoryString(change):
except:
pass
return change
+
+@register.filter(name='lookup')
+def getPhoboLink(mapping, key):
+ return dict(mapping)[key]

add phobos link for each env in agent (#657)

using customer filter instead of additional for loop

add is pinterest check for host details display