• Edit
  • Download
  • <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
      <style>
        html,
        body {
          height: 100%;
          width: 100%;
          margin: 0;
          padding: 0;
        }
    
        img {
          max-width: 150px;
          margin: 10px 0;
        }
    
        zing-grid[loading] {
          height: 873px;
        }
      </style>
    </head>
    
    <body>
      <zing-grid caption="Current Pipelines" layout="card" layout-controls="disabled" viewport-stop>
        <zg-data data='[
            {
              "status": "success",
              "branch": "dev",
              "username": "chocolateRainGuy",
              "commitId": "1582393",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "jennaMarbles",
              "commitId": "32532315",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "starWarsKid",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "pending",
              "branch": "ci-integration",
              "username": "dramticLookGopher",
              "commitId": "aaf1234s",
              "runTime": "1:23",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "dev-unit-tests",
              "username": "leeroyJenkins",
              "commitId": "2345623",
              "runTime": "0:09",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "britneySpears",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "numaNumaGuy",
              "commitId": "62562345",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            }
          ]'></zg-data>
        <zg-card>
          <h2>Pipeline Information</h2>
          <div>Status: [[record.status]]</div>
          <div>Branch: [[record.branch]]</div>
          <div>Run Time: [[record.runTime]]</div>
          <div>Commit: [[record.status]]</div>
          <div>
            <div>Username: [[record.status]]</div>
            <img src="[[record.avatar]]">
          </div>
          <div>
            <select>
              <option value="1">Restart Build</option>
              <option value="2">Reset Cache</option>
            </select>
          </div>
        </zg-card>
      </zing-grid>
      <script>
        ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
      </script>
    </body>
    
    </html>
    <!DOCTYPE html>
    <html>
    
    <head>
      <meta charset="utf-8">
      <title>ZingGrid Demo</title>
      <script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
    </head>
    
    <body>
      <zing-grid caption="Current Pipelines" layout="card" layout-controls="disabled" viewport-stop>
        <zg-data data='[
            {
              "status": "success",
              "branch": "dev",
              "username": "chocolateRainGuy",
              "commitId": "1582393",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "jennaMarbles",
              "commitId": "32532315",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "starWarsKid",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "pending",
              "branch": "ci-integration",
              "username": "dramticLookGopher",
              "commitId": "aaf1234s",
              "runTime": "1:23",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "dev-unit-tests",
              "username": "leeroyJenkins",
              "commitId": "2345623",
              "runTime": "0:09",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "success",
              "branch": "master",
              "username": "britneySpears",
              "commitId": "cd34123as",
              "runTime": "4:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            },
            {
              "status": "failed",
              "branch": "master",
              "username": "numaNumaGuy",
              "commitId": "62562345",
              "runTime": "0:52",
              "avatar": "https://storage.googleapis.com/zg-demos.appspot.com/default_avatar.png"
            }
          ]'></zg-data>
        <zg-card>
          <h2>Pipeline Information</h2>
          <div>Status: [[record.status]]</div>
          <div>Branch: [[record.branch]]</div>
          <div>Run Time: [[record.runTime]]</div>
          <div>Commit: [[record.status]]</div>
          <div>
            <div>Username: [[record.status]]</div>
            <img src="[[record.avatar]]">
          </div>
          <div>
            <select>
              <option value="1">Restart Build</option>
              <option value="2">Reset Cache</option>
            </select>
          </div>
        </zg-card>
      </zing-grid>
    </body>
    
    </html>
    html,
    body {
      height: 100%;
      width: 100%;
      margin: 0;
      padding: 0;
    }
    
    img {
      max-width: 150px;
      margin: 10px 0;
    }