versioning.tpl 2.54 KB
Newer Older
1 2
{include file="header.tpl"}

3 4 5 6 7 8 9
<div class="pageactions" id="toolbar-buttons">
    <div class="btn-group-vertical in-editor">
        <a class="btn btn-secondary editviews" href="{$viewurl}" title="{str tag=displayview section=view}">
            <span class="icon icon-lg icon-tv" aria-hidden="true" role="presentation"></span>
            <span class="btn-title sr-only">{str tag=displayview section=view}</span>
        </a>
    </div>
10
</div>
11

12 13 14
<div class="grouppageswrap view-container">
    {$timelineform|safe}
{if $views}
15
    <div class="jtline"><span class="icon icon-spinner icon-pulse"></span> {str tag=loadingtimelinecontent section=view arg1=$viewtitle}</div>
16 17 18 19 20 21
    <script type="application/javascript">
    $(function () {
        var jtLine = $('.jtline').jTLine({
            callType: 'ajax',
            url:'versioning.json.php',
            eventsMinDistance: 100,
22 23 24
            distanceMode: 'fixDistance', // predefinedDistance , fixDistance
            fixDistanceValue: 2,
            firstPointMargin: 1.5,
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
            params: {literal}{{/literal}
              'sesskey': config.sesskey,
              {if $fromdate} 'fromdate' : '{$fromdate}', {/if}
              {if $todate}'todate' : '{$todate}', {/if}
              'view' : '{$view}',
              {literal}}{/literal},
            map: {
                "dataRoot": "/",
                "title": "taskTitle",
                "subTitle": "taskSubTitle",
                "dateValue": "assignDate",
                "idValue": "assignID",
                "pointCnt": "taskShortDate",
                "bodyCnt": "taskDetails"
            },
40
            formatTitle: function (title, obj) { return '<h2>' + title + '</h2>'; },
41
            formatSubTitle: function (subTitle, obj) { return '<div class="metadata">' + subTitle + '</div>'; },
42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
            formatBodyContent: function (bodyCnt, obj) {
              if (obj.gridlayout) {
                  var grid = $('<div class="grid-stack"></div>');
                  var options = {
                      verticalMargin: 10,
                      float: true,
                      ddPlugin: false,
                  };
                  grid.gridstack(options);
                  grid = grid.data('gridstack');
                  loadGrid(grid, bodyCnt);

                  var container = $('<div class="container-fluid"></div>').append(grid.container);
                  return container[0].outerHTML;
              }
              else {
                  return bodyCnt;
              }
            }
61 62 63 64 65
        });
    });
    </script>
{/if}
</div>
66

67
{include file="footer.tpl"}