-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #209 from bcgov/jp-0001
S40(09) DEV - Daily Campaign Update - Part 2 (24th -- s41(17) Challenge page historical ordering)
- Loading branch information
Showing
2 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,5 @@ | ||
@php | ||
function ordinal($number) { | ||
$ends = array('th','st','nd','rd','th','th','th','th','th','th'); | ||
if ((($number % 100) >= 11) && (($number%100) <= 13)) | ||
return $number. 'th'; | ||
else | ||
return $number. $ends[$number % 10]; | ||
} | ||
@endphp | ||
@extends('adminlte::page') | ||
|
||
@section('content_header') | ||
<div class="mt-3"> | ||
<h1>Challenge</h1> | ||
|
@@ -26,8 +18,8 @@ function ordinal($number) { | |
If you have questions about PECSF statistics, send us an e-mail at <a href="mailto:[email protected]?subject=Challenge%20page">[email protected]</a>.</h6> | ||
</div> | ||
@endsection | ||
@section('content') | ||
|
||
@section('content') | ||
|
||
<div class="card"> | ||
<div class="card-body"> | ||
|
@@ -216,6 +208,10 @@ function addCommas(nStr) | |
serverSide: true, | ||
select: true, | ||
paging: false, | ||
"initComplete": function(settings, json) { | ||
min_height = $(".wrapper").height(); | ||
$(".main-sidebar").css('min-height', min_height); | ||
}, | ||
ajax: { | ||
url: '{!! route('challenge.index') !!}', | ||
data: function (data) { | ||
|