Use flat buttons for actions

This commit is contained in:
Lena Fuhrimann 2016-12-21 02:11:13 +01:00
parent 210dc902b8
commit 6ff5f6d247
2 changed files with 4 additions and 4 deletions

View file

@ -78,12 +78,12 @@ func createObjectHandler(w http.ResponseWriter, r *http.Request) {
}
defer file.Close()
fmt.Fprintf(w, "%v", handler.Header)
_, err = minioClient.PutObject(vars["bucketName"], handler.Filename, file, "application/octet-stream")
if err != nil {
panic(err)
}
w.WriteHeader(http.StatusCreated)
}
// deleteObjectHandler deletes an object

View file

@ -30,12 +30,12 @@
<td>{{ $object.LastModified }}</td>
<td>
<!-- Dropdown Trigger -->
<a class='dropdown-button' href='#' data-activates='actions-dropdown-{{ $index }}'>
<a class="dropdown-button waves-effect waves-teal btn-flat" href="#" data-activates="actions-dropdown-{{ $index }}">
Actions <i class="material-icons right">arrow_drop_down</i>
</a>
<!-- Dropdown Structure -->
<ul id='actions-dropdown-{{ $index }}' class='dropdown-content'>
<ul id="actions-dropdown-{{ $index }}" class="dropdown-content">
<li><a href="/api/buckets/{{ $.BucketName }}/objects/{{ $object.Key }}">Download</a></li>
<li><a href="#" onclick="deleteObject({{ $object.Key }})">Delete</a></li>
</ul>