Skip to content

Commit

Permalink
V1.1 (#11)
Browse files Browse the repository at this point in the history
- upgrade to gentelella 1.1
- new empty page
  • Loading branch information
krzysiekpiasecki committed Apr 24, 2016
1 parent dfafb2b commit d0eea6d
Show file tree
Hide file tree
Showing 94 changed files with 2,963 additions and 2,097 deletions.
75 changes: 75 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Manual upgrade


### 1. Copy new version of original gentelella template to app/Resources/template

### 2. Modify template files (use regular expressions)

Stylesheets:
```html
From: href=['"](.*).css['"]
To: href="{{ asset('$1') }}"
```

Links:
```html
From: href=['"](.*).html['"]
To: href="/template/$1"
```

Scripts:
```html
From: src=['"](js/.*.(js|json))['"]
To: src="{{ asset('$1') }}"
```

Images:
```html
From: src=['"](images/.*.(jpg|png))['"]
To: src="{{ asset('$1') }}”
```

### 3. Link templates with panel

In every template file

After:

```html
<div class="nav toggle”>
<a id="menu_toggle"><i class="fa fa-bars"></i></a>
</div>
```
Paste:
```html
<div class="nav toggle”>
<a href="/admin">Site</a>
</div>
```

### 4. Copy plain_page.html template to app/Resources/admin.html.twig

Then replace all paths:

```html
From: /template/
To: /admin/
```

and replace

```html
Form: <a href="/admin">Site</a>
To: <a href=“/template”>Template</a>
```

### Test
From root of the project run command

```base
$ phpunit
```



415 changes: 415 additions & 0 deletions app/Resources/views/admin.html.twig

Large diffs are not rendered by default.

70 changes: 0 additions & 70 deletions app/Resources/views/base.html.twig

This file was deleted.

12 changes: 0 additions & 12 deletions app/Resources/views/footer.html.twig

This file was deleted.

2 changes: 1 addition & 1 deletion app/Resources/views/index.html.twig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "base.html.twig" %}
{% extends "admin.html.twig" %}


{% block body %}
Expand Down
159 changes: 0 additions & 159 deletions app/Resources/views/sidebar.html.twig

This file was deleted.

Loading

0 comments on commit d0eea6d

Please sign in to comment.