Skip to content

Commit a5bece2

Browse files
Merge pull request #189 from ashmaroli/admin-style
Update front-end to a sleek interface
2 parents a0d8709 + 0be50f2 commit a5bece2

19 files changed

+162
-115
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
A Jekyll plugin that provides users with a traditional CMS-style graphical interface to author content and administer Jekyll sites. The project is divided into two parts. A Ruby-based HTTP API that handles Jekyll and filesystem operations, and a Javascript-based front end, built on that API.
66

7-
![screenshot of Jekyll Admin](https://cloud.githubusercontent.com/assets/282759/17258537/62e23ed6-5595-11e6-89b0-31c787f0492a.png)
7+
![screenshot of Jekyll Admin](/screenshot.png)
88

99
## Installation
1010

screenshot.png

40.3 KB
Loading

src/containers/views/DataFileNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export class DataFileNew extends Component {
6868
<div className="side-unit">
6969
<a onClick={() => this.handleClickSave()}
7070
className={"btn"+(datafileChanged ? " btn-success " : " btn-inactive ")+"btn-fat"}>
71+
<i className="fa fa-save" aria-hidden="true"></i>
7172
{updated ? 'Saved' : 'Save'}
7273
</a>
7374
</div>

src/containers/views/DataFiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export class DataFiles extends Component {
6262
</td>
6363
<td>
6464
<div className="row-actions">
65-
<a onClick={() => this.handleClickDelete(filename)} title="Delete">
65+
<a onClick={() => this.handleClickDelete(filename)} title="Delete" className="delete">
6666
<i className="fa fa-trash-o" aria-hidden="true"></i> Delete
6767
</a>
6868
</div>

src/containers/views/DocumentEdit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,15 @@ export class DocumentEdit extends Component {
112112
<div className="side-unit">
113113
<a onClick={() => this.handleClickSave(filename, collection)}
114114
className={"btn"+(fieldChanged ? " btn-success " : " btn-inactive ")+"btn-fat"}>
115+
<i className="fa fa-save" aria-hidden="true"></i>
115116
{updated ? 'Saved' : 'Save'}
116117
</a>
117118
</div>
118119
{
119120
http_url && <div className="side-unit">
120-
<Link target="_blank" className="btn btn-fat" to={http_url}>View</Link>
121+
<Link target="_blank" className="btn btn-fat" to={http_url}>
122+
<i className="fa fa-eye" aria-hidden="true"></i>View
123+
</Link>
121124
</div>
122125
}
123126
<Splitter />

src/containers/views/DocumentNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export class DocumentNew extends Component {
8686
<div className="side-unit">
8787
<a onClick={() => this.handleClickSave()}
8888
className={"btn"+(fieldChanged ? " btn-success " : " btn-inactive ")+"btn-fat"}>
89+
<i className="fa fa-plus-square-o" aria-hidden="true"></i>
8990
{updated ? 'Created' : 'Create'}
9091
</a>
9192
</div>

src/containers/views/Documents.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ export class Documents extends Component {
7676
<td>{moment(doc.date).format("LLL").toString()}</td>
7777
<td>
7878
<div className="row-actions">
79-
<a onClick={() => this.handleClickDelete(filename, collection)} title="Delete">
79+
<a onClick={() => this.handleClickDelete(filename, collection)} title="Delete" className="delete">
8080
<i className="fa fa-trash-o" aria-hidden="true"></i> Delete
8181
</a>
8282
{
83-
http_url && <a target="_blank" href={http_url} title="View">
83+
http_url && <a target="_blank" href={http_url} title="View" className="view">
8484
<i className="fa fa-eye" aria-hidden="true"></i> View
8585
</a>
8686
}

src/containers/views/PageEdit.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,14 @@ export class PageEdit extends Component {
106106
<div className="side-unit">
107107
<a onClick={() => this.handleClickSave(name)}
108108
className={"btn"+(fieldChanged ? " btn-success " : " btn-inactive ")+"btn-fat"}>
109+
<i className="fa fa-save" aria-hidden="true"></i>
109110
{updated ? 'Saved' : 'Save'}
110111
</a>
111112
</div>
112113
<div className="side-unit">
113-
<Link target="_blank" className="btn btn-fat" to={http_url}>View</Link>
114+
<Link target="_blank" className="btn btn-fat" to={http_url}>
115+
<i className="fa fa-eye" aria-hidden="true"></i>View
116+
</Link>
114117
</div>
115118
<Splitter />
116119
<a onClick={() => this.handleClickDelete(name)}

src/containers/views/PageNew.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export class PageNew extends Component {
7878
<div className="side-unit">
7979
<a onClick={() => this.handleClickSave()}
8080
className={"btn"+(fieldChanged ? " btn-success " : " btn-inactive ")+"btn-fat"}>
81+
<i className="fa fa-plus-square-o" aria-hidden="true"></i>
8182
{updated ? 'Created' : 'Create'}
8283
</a>
8384
</div>

src/containers/views/Pages.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ export class Pages extends Component {
6262
</td>
6363
<td>
6464
<div className="row-actions">
65-
<a onClick={() => this.handleClickDelete(name)} title="Delete">
65+
<a onClick={() => this.handleClickDelete(name)} title="Delete" className="delete">
6666
<i className="fa fa-trash-o" aria-hidden="true"></i> Delete
6767
</a>
68-
<a target="_blank" href={http_url} title="View">
68+
<a target="_blank" href={http_url} title="View" className="view">
6969
<i className="fa fa-eye" aria-hidden="true"></i> View
7070
</a>
7171
</div>

0 commit comments

Comments
 (0)