add roadmap and stuff

This commit is contained in:
Henrique Dias 2016-06-10 21:00:18 +01:00
parent 4efb4f2a53
commit be68ebb24f
3 changed files with 11 additions and 3 deletions

View File

@ -3,7 +3,14 @@
[![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com) [![community](https://img.shields.io/badge/community-forum-ff69b4.svg?style=flat-square)](https://forum.caddyserver.com)
[![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager) [![Documentation](https://img.shields.io/badge/godoc-reference-blue.svg?style=flat-square)](http://godoc.org/github.com/hacdias/caddy-filemanager)
This is just a concept of syntax: ## Roadmap
+ [ ] Rename files
+ [ ] Delete files
+ [ ] Show text files
+ [ ] Show pictures
+ [ ] Show videos
+ [ ] Show music
``` ```
filemanager { filemanager {

View File

@ -240,8 +240,9 @@ func (f FileManager) formatAsJSON(listing *Listing, bc *Config) (*bytes.Buffer,
return buf, err return buf, err
} }
func (f FileManager) formatAsHTML(listing *Listing, bc *Config) (*bytes.Buffer, error) { func (f FileManager) formatAsHTML(listing *Listing, fmc *Config) (*bytes.Buffer, error) {
buf := new(bytes.Buffer) buf := new(bytes.Buffer)
listing.StyleSheet = fmc.StyleSheet
err := Template.Execute(buf, listing) err := Template.Execute(buf, listing)
return buf, err return buf, err
} }

View File

@ -103,7 +103,7 @@ func fileManagerParse(c *caddy.Controller) ([]Config, error) {
} }
fmc.StyleSheet = string(tplBytes) fmc.StyleSheet = string(tplBytes)
} else { } else {
tplBytes, err := assets.Asset("template.tmpl") tplBytes, err := assets.Asset("styles.css")
if err != nil { if err != nil {
return configs, err return configs, err
} }