Skip to content

Commit

Permalink
fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
bakito committed May 26, 2018
1 parent dc3b36f commit 87d1931
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
14 changes: 7 additions & 7 deletions README.md
Expand Up @@ -248,18 +248,18 @@ summary.appendText(text, escapeHtml, bold, italic, color)
## icons
The badge plugin provides the following additional icons:

![alt text](src/main/webapp/images/delete.gif "delete.gif")
![alt text](src/main/webapp/images/completed.gif "completed.gif")
![alt text](src/main/webapp/images/db_in.gif "db_in.gif")
![alt text](src/main/webapp/images/db_out.gif "db_out.gif")
![alt text](src/main/webapp/images/delete.gif "delete.gif")
![alt text](src/main/webapp/images/error.gif "error.gif")
![alt text](src/main/webapp/images/folder.gif "folder.gif")
![alt text](src/main/webapp/images/green.gif "green.gif")
![alt text](src/main/webapp/images/info.gif "info.gif")
![alt text](src/main/webapp/images/db_in.gif "db_in.gif")
![alt text](src/main/webapp/images/text.gif "text.gif")
![alt text](src/main/webapp/images/red.gif "red.gif")
![alt text](src/main/webapp/images/success.gif "success.gif")
![alt text](src/main/webapp/images/green.gif "green.gif")
![alt text](src/main/webapp/images/save.gif "save.gif")
![alt text](src/main/webapp/images/error.gif "error.gif")
![alt text](src/main/webapp/images/success.gif "success.gif")
![alt text](src/main/webapp/images/text.gif "text.gif")
![alt text](src/main/webapp/images/warning.gif "warning.gif")
![alt text](src/main/webapp/images/folder.gif "folder.gif")
![alt text](src/main/webapp/images/yellow.gif "yellow.gif")

Expand Up @@ -6,8 +6,9 @@
import com.hubspot.jinjava.util.HelperStringTokenizer;

import java.io.File;
import java.util.Arrays;
import java.util.stream.Collectors;

import static java.util.Arrays.stream;
import static java.util.stream.Collectors.joining;

public class ListImagesTag implements Tag {

Expand All @@ -33,7 +34,7 @@ public String interpret(TagNode tagNode, JinjavaInterpreter jinjavaInterpreter)
if (files == null) {
return null;
}
return Arrays.stream(files).map(f -> "![alt text](" + path + "/" + f.getName() + " \"" + f.getName() + "\")").collect(Collectors.joining("\n"));
return stream(files).map(File::getName).sorted().map(name -> "![alt text](" + path + "/" + name + " \"" + name + "\")").collect(joining("\n"));
}

@Override
Expand Down

0 comments on commit 87d1931

Please sign in to comment.