Skip to content

Commit

Permalink
more fixes to browser on adobe issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Sep 19, 2024
1 parent 2441f9e commit dbe163f
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 29 deletions.
32 changes: 18 additions & 14 deletions bx/browser/index.bxm
Original file line number Diff line number Diff line change
Expand Up @@ -88,20 +88,24 @@
Below is a listing of the runners matching the "runner*.(cfm|bxm)" pattern.
</p>

<bx:set runners = directoryList( executePath, false, "query", "runner*.cfm|runner*.bxm" )>
<bx:output query="runners">
<a
href="#runners.name#"
target="_blank"
<bx:if listLast( runners.name, "." ) eq "bxm">
class="btn btn-success btn-sm my-1 mx-1"
<bx:else>
class="btn btn-info btn-sm my-1 mx-1"
</bx:if>
>
#runners.name#
</a>
</bx:output>
<bx:set runners = directoryList( targetPath, false, "query", "runner*.cfm|runner*.bxm" )>
<bx:if runners.recordCount eq 0>
<p class="alert alert-warning">No runners found in this directory</p>
<bx:else>
<bx:loop query="runners">
<a
href="#runners.name#"
target="_blank"
<bx:if listLast( runners.name, "." ) eq "bxm">
class="btn btn-success btn-sm my-1 mx-1"
<bx:else>
class="btn btn-info btn-sm my-1 mx-1"
</bx:if>
>
#runners.name#
</a>
</bx:loop>
</bx:if>
</div>
</div>

Expand Down
34 changes: 19 additions & 15 deletions cfml/browser/index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ASSETS_DIR = expandPath( "/testbox/system/reports/assets" );
TESTBOX_VERSION = new testBox.system.TestBox().getVersion();
// TEST LOCATIONS -> UPDATE AS YOU SEE FIT
rootMapping = "/tests/specs";
rootMapping = "/tests";
// Local Variables
rootPath = expandPath( rootMapping );
Expand Down Expand Up @@ -90,20 +90,24 @@
Below is a listing of the runners matching the "runner*.(cfm|bxm)" pattern.
</p>
<cfset runners = directoryList( executePath, false, "query", "runner*.cfm|runner*.bxm" )>
<cfoutput query="runners">
<a
href="#runners.name#"
target="_blank"
<cfif listLast( runners.name, "." ) eq "bxm">
class="btn btn-success btn-sm my-1 mx-1"
<cfelse>
class="btn btn-info btn-sm my-1 mx-1"
</cfif>
>
#runners.name#
</a>
</cfoutput>
<cfset runners = directoryList( targetPath, false, "query", "runner*.cfm|runner*.bxm" )>
<cfif runners.recordCount eq 0>
<p class="alert alert-warning">No runners found in this directory</p>
<cfelse>
<cloop query="runners">
<a
href="#runners.name#"
target="_blank"
<cfif listLast( runners.name, "." ) eq "bxm">
class="btn btn-success btn-sm my-1 mx-1"
<cfelse>
class="btn btn-info btn-sm my-1 mx-1"
</cfif>
>
#runners.name#
</a>
</cloop>
</cfif>
</div>
</div>
Expand Down

0 comments on commit dbe163f

Please sign in to comment.