Commit c1ffd707 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1796588: Adding a 'loading' message for timeline



In case there are a lot of versions and/or versions have slow loading
blocks

behatnotneeded

Change-Id: Idc7f1eeca76f10a22a76c11a5e2e22bfd82f0858
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 6335ed9c
...@@ -532,3 +532,4 @@ $string['nextversion'] = 'Next version'; ...@@ -532,3 +532,4 @@ $string['nextversion'] = 'Next version';
$string['versionnumber'] = 'Version %s'; $string['versionnumber'] = 'Version %s';
$string['gotonextversion'] = 'Go to the next version '; $string['gotonextversion'] = 'Go to the next version ';
$string['gotopreviousversion'] = 'Go to the previous version'; $string['gotopreviousversion'] = 'Go to the previous version';
$string['loadingtimelinecontent'] = 'Loading timeline for "%s". If the page has many versions, this may take a while.';
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="grouppageswrap view-container"> <div class="grouppageswrap view-container">
{$timelineform|safe} {$timelineform|safe}
{if $views} {if $views}
<div class="jtline"></div> <div class="jtline"><span class="icon icon-spinner icon-pulse"></span> {str tag=loadingtimelinecontent section=view arg1=$viewtitle}</div>
<script type="application/javascript"> <script type="application/javascript">
$(function () { $(function () {
var jtLine = $('.jtline').jTLine({ var jtLine = $('.jtline').jTLine({
......
...@@ -66,5 +66,6 @@ $smarty->assign('fromdate', urlencode($fromdate)); ...@@ -66,5 +66,6 @@ $smarty->assign('fromdate', urlencode($fromdate));
$smarty->assign('todate', urlencode($todate)); $smarty->assign('todate', urlencode($todate));
$smarty->assign('viewurl', $viewobject->get_url()); $smarty->assign('viewurl', $viewobject->get_url());
$smarty->assign('view', $view); $smarty->assign('view', $view);
$smarty->assign('viewtitle', hsc($viewobject->get('title')));
$smarty->assign('headingclass', 'page-header'); $smarty->assign('headingclass', 'page-header');
$smarty->display('view/versioning.tpl'); $smarty->display('view/versioning.tpl');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment