Please enable JavaScript to use RhodeCode Enterprise
Commit Description:
DRY problem select
Commit Description:
DRY problem select
%h1 Test cases
%h2 = @problem . long_name
/navbar
%ul .nav.nav-pills { role : :tablist }
- @problem . testcases . each . with_index do | tc , id |
%li .nav-item { role : :presentation , class : ( 'active' if id == 0 )}
%a .nav-link { href : "#tc #{ tc . id } ", role: 'tab', 'data-bs': {toggle: 'tab', target: "#tc #{ tc . id } "}}= tc.num
/actual data
.tab-content
- @problem . testcases . each . with_index do | tc , id |
.tab-pane { id : "tc #{ tc . id } ",class: ('active' if id == 0)}
.row
.col-md-6
%h3 Input
= link_to "Download" , download_input_testcase_path ( tc ), class : 'btn btn-info btn-sm'
.col-md-6
%h3 Output
= link_to "Download" , download_sol_testcase_path ( tc ), class : 'btn btn-info btn-sm'
.row
.col-md-6
%textarea { rows : 25 , readonly : true , style : "width:100%;resize=none;overflow-y: scroll;" }= tc . input
.col-md-6
%textarea { rows : 25 , readonly : true , style : "width:100%;resize=none;overflow-y: scroll;" }= tc . sol
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository permissions settings