Skip to content

Commit

Permalink
2.52.3 Remote Radio links now styled differently than listener websit…
Browse files Browse the repository at this point in the history
…es in listeners list and display inactive if receiver location is inactive
  • Loading branch information
classaxe committed Aug 28, 2022
1 parent 2ecc264 commit 7b3f9be
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/Columns/ListenerRemoteLogsessions.php
Expand Up @@ -72,7 +72,7 @@ public function getColumns()
'admin' => false,
'arg' => '',
'field' => 'listener',
'label' => 'Receiver [link]',
'label' => 'Receiver',
'order' => 'a',
'sort' => 'listener',
'td_class' => '',
Expand Down
6 changes: 3 additions & 3 deletions src/Columns/Listeners.php
Expand Up @@ -378,7 +378,7 @@ public function getColumns()
'arg' => '',
'field' => 'website',
'highlight' => false,
'label' => 'WWW',
'label' => 'URL',
'sortBy' => [['l.wn','DESC'],['l.website', 'DIR']],
'order' => 'a',
'sort' => 'l.website',
Expand All @@ -391,11 +391,11 @@ public function getColumns()
'arg' => '',
'field' => 'ndbWebLog',
'highlight' => false,
'label' => 'NWL',
'label' => 'NDB Web Log',
'order' => '',
'sort' => '',
'td_class' => '',
'th_class' => '',
'th_class' => 'txt_vertical',
'tooltip' => 'NDB Weblog for Listener',
],
'map' => [
Expand Down
2 changes: 1 addition & 1 deletion src/Columns/Logsessions.php
Expand Up @@ -61,7 +61,7 @@ public function getColumns()
'admin' => false,
'arg' => '',
'field' => 'listener',
'label' => 'Listener | Location [Link]',
'label' => 'Listener | Location',
'order' => 'a',
'sort' => 'li.name',
'td_class' => '',
Expand Down
4 changes: 3 additions & 1 deletion src/Repository/LogRepository.php
Expand Up @@ -206,7 +206,9 @@ public function getLogs(array $args, $columns = [])
.'l.operatorId,'
.'l.listenerId,'
.'(CASE WHEN op.name IS NULL THEN \'\' ELSE op.name END) as operator,'
.'CONCAT(li.name, \', \', li.qth, \' \', li.sp, \', \', li.itu, \' | \', li.gsq) as receiver';
.'li.website,'
.'li.active,'
.'CONCAT(li.name, \', \', li.qth, \' \', li.sp, \', \', li.itu, \' \', li.gsq) as receiver';

$qb = $this
->createQueryBuilder('l')
Expand Down
6 changes: 5 additions & 1 deletion templates/listener/logs.grid.html.twig
Expand Up @@ -36,7 +36,11 @@
elseif key == 'id'
%}{% if isAdmin %}<a href="{{ url('log', { 'system' : system, 'id' : l.log_id }) }}" data-popup="1" title="Click to view this log record">{{ l.log_id }}</a>{% else %}{{ l.log_id }}{% endif %}{%
elseif key == 'receiver'
%}{% if l.operatorId %}<a href="{{ url('listener', { 'system' : system, 'id': l.listenerId }) }}" data-popup="1" title="Click to see profile for this Receiver">{{ l.receiver|raw }}</a>{% endif %}{%
%}{% if l.operatorId %}<a href="{{ url('listener', { 'system' : system, 'id': l.listenerId }) }}" data-popup="1" title="Click to see profile for this Receiver">{{ l.receiver|raw }}</a>{% endif %}
{% if l.operator and l.website %}
<span {% if l.active == 'Y' %}class="link" title="Click to access receiver"{% else %}class="inactive" title="Inactive receiver"{% endif %}>[<a href="{{ l.website }}" data-popup="www_{{ l.listenerId }}|width=800,height=640,status=1,scrollbars=1,resizable=1">RX Link</a>]</span>
{% endif
%}{%
elseif key == 'operator'
%}{% if l.operatorId %}<a href="{{ url('listener', { 'system' : system, 'id': l.operatorId }) }}" data-popup="1" title="Click to see profile for this Listener">{{ l.operator|raw }}</a>{% endif %}{%
elseif key == 'delete' and isAdmin
Expand Down
2 changes: 1 addition & 1 deletion templates/listener/logsessions.grid.html.twig
Expand Up @@ -42,7 +42,7 @@
elseif key == 'receiver'
%}<a href="{{ url('listener_logsessions', { 'system' : system, 'id' : ls.listenerId }) }}" data-popup="1" title="Click to view Log Sessions for this Listener Location">{{ ls.listener|raw }}</a>
{% if ls.operator and ls.website %}
<span {% if ls.active == 'Y' %}class="link" title="Click to access receiver"{% else %}class="inactive" title="Inactive receiver"{% endif %}>[<a href="{{ ls.website }}" data-popup="www_{{ ls.listenerId }}|width=800,height=640,status=1,scrollbars=1,resizable=1">Link</a>]</span>
<span {% if ls.active == 'Y' %}class="link" title="Click to access receiver"{% else %}class="inactive" title="Inactive receiver"{% endif %}>[<a href="{{ ls.website }}" data-popup="www_{{ ls.listenerId }}|width=800,height=640,status=1,scrollbars=1,resizable=1">RX Link</a>]</span>
{% endif
%}{%
elseif key == 'operator'
Expand Down
9 changes: 8 additions & 1 deletion templates/listeners/list.html.twig
Expand Up @@ -100,7 +100,14 @@
elseif key == 'email'
%}{% if l.email %}<a href="mailto:{{ l.email }}">{{ l.email|raw }}</a>{% endif %}{%
elseif key == 'website'
%}{% if l.website %}<a href="{{ l.website }}" data-popup="www_{{ l.id }}|width=800,height=640,status=1,scrollbars=1,resizable=1">{% trans %}Link...{% endtrans %}</a>{% endif %}{%
%}{% if l.website %}{%
if l.multiOperator == 'Y'
%}<span {% if l.active == 'Y' %}class="link" title="Click to access remote receiver"{% else %}class="inactive" title="Remote receiver is inactive"{% endif %}>[<a href="{{ l.website }}" data-popup="www_{{ l.id }}|width=800,height=640,status=1,scrollbars=1,resizable=1">RX Link</a>]</span>{%
else
%}[<a title="Click to access website" href="{{ l.website }}" data-popup="www_{{ l.id }}|width=800,height=640,status=1,scrollbars=1,resizable=1">{% trans %}Website{% endtrans %}</a>]{%
endif
%}{%
endif %}{%
elseif key == 'countRemoteLogSessions'
%}{% if l.countSignals %}<a href="{{ url('listener_remote_logsessions', { 'system' : system, 'id' : l.ID }) }}" data-popup="1">{{ value }}</a>{% endif %}{%
elseif key == 'addlog'
Expand Down
2 changes: 1 addition & 1 deletion templates/log_sessions/grid.html.twig
Expand Up @@ -45,7 +45,7 @@
elseif key == 'listener'
%}<a href="{{ url('listener_logsessions', { 'system' : system, 'id' : ls.listenerId }) }}" data-popup="1" title="Click to view Log Sessions for this Listener Location">{{ ls.listener|raw }}</a>
{% if ls.operator and ls.website %}
<span {% if ls.active == 'Y' %}class="link" title="Click to access receiver"{% else %}class="inactive" title="Inactive receiver"{% endif %}>[<a href="{{ ls.website }}" data-popup="www_{{ ls.listenerId }}|width=800,height=640,status=1,scrollbars=1,resizable=1">Link</a>]</span>
<span {% if ls.active == 'Y' %}class="link" title="Click to access receiver"{% else %}class="inactive" title="Inactive receiver"{% endif %}>[<a href="{{ ls.website }}" data-popup="www_{{ ls.listenerId }}|width=800,height=640,status=1,scrollbars=1,resizable=1">RX Link</a>]</span>
{% endif
%}{%
elseif key == 'signals'
Expand Down

0 comments on commit 7b3f9be

Please sign in to comment.