Skip to content

Commit

Permalink
List of non flowing chains
Browse files Browse the repository at this point in the history
Add list of nonflowing chains
  • Loading branch information
justinasr authored Aug 14, 2018
1 parent 65994a4 commit fe763e7
Show file tree
Hide file tree
Showing 15 changed files with 273 additions and 13 deletions.
2 changes: 1 addition & 1 deletion mcm/HTML/batches.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h4>{{type}} batch: {{prepid}}</h4>
<a ng-href="admin/_utils/document.html?batches/{{data[value.db_name]}}" rel="tooltip" title="Admin view of {{data[value.db_name]}}" target="_self" ng-hide="role(4);"><i class="icon-star"></i></a>
</div>
<div ng-switch-when="Notes">
<div style="width:500px"><pre>{{data[value.db_name]}}</pre></div>
<div style="width:500px"><pre class="notes">{{data[value.db_name]}}</pre></div>
</div>
<div ng-switch-when="History">
<div custom-history ng-model="data[value.db_name]"></div>
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/campaigns.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ <h4>Create a request</h4>
<!-- END OF MODAL -->
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{data[value.db_name]}}</pre></div>
<div style="width:400px"><pre class="notes">{{data[value.db_name]}}</pre></div>
</div>
<div ng-switch-when="Sequences">
<div sequence-display ng-model="data.prepid"></div>
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/chained_campaigns.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ <h4>Create a chained request</h4>
<!-- END OF MODAL -->
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{data[value.db_name]}}</pre></div>
<div style="width:400px"><pre class="notes">{{data[value.db_name]}}</pre></div>
</div>
<div ng-switch-when="Alias">
<a ng-href='chained_campaigns?alias={{data.alias}}' rel="tooltip" title="View chained campaigns with alias {{data.alias}}" target="_self">{{data.alias}}</a>
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/flows.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</dl>
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{data[value.db_name]}}</pre></div>
<div style="width:400px"><pre class="notes">{{data[value.db_name]}}</pre></div>
</div>
<div ng-switch-when="Request parameters">
<ul>
Expand Down
81 changes: 81 additions & 0 deletions mcm/HTML/lists.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
<!DOCTYPE html>
<html lang="eng" ng-app="testApp" xmlns:ng="http://angularjs.org" id="ng-app">
<head>
<base href="/mcm/">
<title>Lists page McM</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="scripts/build/mcmcss.css" rel="stylesheet"/>

<script type="text/javascript" src="scripts/build/mcm.deps1.js"></script>
<!--[IF IE]>
<script type="text/javascript">
var testApp = angular.module('testApp', ['ui.bootstrap']).config(function($locationProvider){$locationProvider.html5Mode(false);});
</script>
<![endif]-->
<![if !IE]>
<script type="text/javascript">
var testApp = angular.module('testApp', ['ui.bootstrap']).config(function($locationProvider){$locationProvider.html5Mode(true);});
</script>
<![endif]>
<script src="scripts/main_controller.js"></script>
<script src="scripts/lists_controller.js"></script>
<script src="scripts/notifications.js"></script>
</head>
<body ng-controller="mainCtrl">
<span ng-controller="resultsCtrl">
<div ng-include="'HTML/navbar_template.html'"></div>
<div class="row-fluid"><div class="offset4"><h2 ng-if="list_overview">Lists in McM</h2><h2 ng-if="!list_overview">List <em>{{list_name}}</em></h2></div></div>
<table class="table table-bordered table-stripped">
<thead>
<tr>
<th ng-repeat="column in lists_defaults" ng-if="column.select" ng-switch on="column.text">
{{column.text}}
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="list_info in result | orderBy:sort.column: sort.descending">
<td ng-repeat="data in lists_defaults" ng-if="data.select">
<div ng-switch on="data.db_name">
<div ng-switch-when="prepid">
<a ng-href="lists?prepid={{list_info['prepid']}}" target="_self">{{list_info['prepid']}}</a>
</div>
<div ng-switch-when="chain">
<a ng-href="chained_requests?prepid={{list_info['chain']}}" rel="tooltip" title="View only {{list_info['chain']}}" target="_self"> {{list_info['chain']}}</a>
</div>
<div ng-switch-when="notes">
<div style="width:400px"><pre class="notes">{{list_info[data.db_name]}} </pre></div>
</div>
<div ng-switch-when="reason">
<div style="width:400px"><pre class="notes">{{list_info[data.db_name]}} </pre></div>
</div>
<div ng-switch-default>
{{list_info[data.db_name]}}
</div>
</div>
</td>
</tr>
</tbody>
</table>
<div class="row-fluid custom-footer-priority">
<div class="span5" style="margin-top:20px;">
</div>
<div class="span2" style="margin-top:20px;">
<span ng-show="got_results && result_status == 200 && result_status">
Found {{result.length}} results
</span>
<span class="alert alert-error" ng-show="got_results && result_status != 200 && result_status">
<strong>HTTP Error {{result_status}}</strong>
</span>
<img ng-show="pendingHTTP" ng-src="https://twiki.cern.ch/twiki/pub/TWiki/TWikiDocGraphics/processing-bg.gif"/>
<div ng-show="update['success']">
Success. Status code: <font color="green">{{update['status_code']}}</font>
</div>
<div ng-show="update['fail']">
Fail. Status code: <font color="red">{{update['status_code']}}</font>
</div>
</div>
</div>
</span>
</body>
</html>
4 changes: 4 additions & 0 deletions mcm/HTML/navbar_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@
<li ng-class='{ "active": dbName=="settings"}' ng-hide="role(4);">
<a ng-href='settings' target="_self">Settings <i class="icon-briefcase"></i></a>
</li>
<li aclass="divider-vertical"></li>
<li ng-class='{ "active": dbName=="lists"}'>
<a ng-href='lists' target="_self">Lists <i class="icon-list-alt"></i></a>
</li>
<li class="divider-vertical" ng-hide="role(4);"></li>
<li ng-hide="role(4);">
<a ng-href='admin/_utils/' target="_self">Admin <i class="icon-star"></i></a>
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/requests.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<div custom-approval ng-model="data[value.db_name]"></div>
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{data[value.db_name]}}</pre></div>
<div style="width:400px"><pre class="notes">{{data[value.db_name]}}</pre></div>
</div>
<div ng-switch-when="Sequences">
<div sequence-display ng-model="data.prepid"></div>
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
</a>
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{settings_info[data.db_name]}} </pre></div>
<div style="width:400px"><pre class="notes">{{settings_info[data.db_name]}} </pre></div>
</div>
<div ng-switch-when="Value">
<div ng-if="settings_info['prepid'] == 'list_of_forceflow'">
Expand Down
2 changes: 1 addition & 1 deletion mcm/HTML/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h4>Notify {{pwg}}</h4>
<div custom-history ng-model="user_info[data.db_name]"></div>
</div>
<div ng-switch-when="Notes">
<div style="width:400px"><pre>{{user_info[data.db_name]}}</pre></div>
<div style="width:400px"><pre class="notes">{{user_info[data.db_name]}}</pre></div>
</div>
<div ng-switch-default>
{{user_info[data.db_name]}}
Expand Down
Loading

0 comments on commit fe763e7

Please # to comment.