-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- upgrade to gentelella 1.1 - new empty page
- Loading branch information
1 parent
dfafb2b
commit d0eea6d
Showing
94 changed files
with
2,963 additions
and
2,097 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{% extends "base.html.twig" %} | ||
{% extends "admin.html.twig" %} | ||
|
||
|
||
{% block body %} | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.