]> git.immae.eu Git - perso/Immae/Projets/Nodejs/Surfer.git/blobdiff - frontend/index.html
Add raw/tar/zip endpoints
[perso/Immae/Projets/Nodejs/Surfer.git] / frontend / index.html
index 3a2f7f7fddb8b39654cf63a1e3fdc59cb9c3bfd6..20f2c8df4a64d67624b8d3dbe16a856754f73306 100644 (file)
         </el-breadcrumb>
       </div>
       <div align="right" v-show="session.valid">
+        <el-button-group>
+          <a v-bind:href="'/raw' + path">
+            <el-button type="primary" icon="el-icon-download" size="small">Raw (curl/wget friendly)</el-button>
+          </a>
+          <a v-bind:href="'/tar' + path">
+            <el-button type="primary" icon="el-icon-download" size="small">Download Tar.gz</el-button>
+          </a>
+          <a v-bind:href="'/zip' + path">
+            <el-button type="primary" icon="el-icon-download" size="small">Download Zip</el-button>
+          </a>
+        </el-button-group>
         <el-button-group>
           <el-button type="primary" icon="el-icon-upload2" size="small" @click="onUpload">Upload File</el-button>
           <el-button type="primary" icon="el-icon-upload" size="small" @click="onUploadFolder">Upload Folder</el-button>