File tree Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Expand file tree Collapse file tree 3 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 11
11
12
12
13
13
@execute_as_transaction
14
- def user_jobs_get_req (user ):
14
+ def user_jobs_get_req (user , limit = 10 ):
15
15
"""Gets the json of jobs
16
16
17
17
Parameters
18
18
----------
19
- prep_id : int
20
- PrepTemplate id to get info for
21
- user_id : str
22
- User requesting the sample template info
19
+ user : User
20
+ The user from which you want to return all jobs
21
+ limit : int, optional
22
+ Maximum jobs to send, negative values will return all
23
23
24
24
Returns
25
25
-------
26
26
dict of objects
27
27
{'status': status,
28
28
'message': message,
29
- 'template': {sample: {column: value, ...}, ...}
29
+ 'template': {{column: value, ...}, ...}
30
30
"""
31
31
32
32
response = []
33
33
cmds = {}
34
- for j in user .jobs ():
34
+ for i , j in enumerate (user .jobs ()):
35
+ if i == limit :
36
+ break
35
37
cmd = j .command
36
38
if cmd not in cmds :
37
39
cmds [cmd ] = cmd
Original file line number Diff line number Diff line change 3
3
{% end %}
4
4
5
5
{%block content %}
6
- < div id ="jumbotron " class ="jumbotron ">
6
+ < div id ="jumbotron " class ="jumbotron " style =" border-radius: 10px; padding: 30px " >
7
7
< h1 > {% raw portal_styling.index_header%}</ h1 >
8
8
{% raw portal_styling.index_text%}
9
9
</ div >
Original file line number Diff line number Diff line change 299
299
} ) ;
300
300
301
301
} ) ;
302
-
302
+
303
303
</ script >
304
304
{% block head %}{% end %}
305
305
</ head >
318
318
319
319
< div id ="qiita-main " class ="qiita-main ">
320
320
< div id ="navigation-bar " class ="navbar navbar-inverse navbar-static-top navbar-custom " role ="navigation ">
321
- < div class ="container ">
321
+ < div class ="container-fluid ">
322
322
< div class ="navbar-header ">
323
323
<!-- button that appears if the window is re-sized to a smaller size -->
324
324
< button type ="button " class ="navbar-toggle " data-toggle ="collapse " data-target =".navbar-collapse ">
411
411
</ li >
412
412
< li class ="dropdown ">
413
413
< a href ="# " onClick ="show_hide_process_list() " id ="dflt-sel-info "> < span class ="glyphicon glyphicon-tasks "> </ span > </ a >
414
- < ul class ="dropdown-menu " style ="padding: 5px ">
415
- < li > < span id ="dflt-study-count "> </ span > Running:</ li >
416
- </ ul >
417
414
</ li >
418
415
</ ul >
419
416
<!-- otherwise show the login form -->
489
486
{% end %}
490
487
491
488
<!-- all templates should override this portion to present their main content -->
492
- < div id ="template-content " class ="container " style ="width:99 % ">
489
+ < div id ="template-content " class ="container-fluid " style ="width:98 % ">
493
490
{% block content %}{% end %}
494
491
</ div >
495
492
@@ -517,7 +514,7 @@ <h1>This site only works with the following browsers</h1>
517
514
</ div >
518
515
519
516
< div id ="qiita-processing " class ="pre-scrollable " style ="max-height: 100% ">
520
- < div id ="processing-jobs-table " style ="padding: 5px 5px; ">
517
+ < div id ="processing-jobs-table " style ="padding: 5px 5px; background-color: #DDD " ; ">
521
518
< h3 > Processing Jobs</ h3 >
522
519
Search: < input v-model ="search ">
523
520
< hr >
You can’t perform that action at this time.
0 commit comments