Skip to content

Commit 94b95e1

Browse files
committed
Rename admin route to if-gs-tiles
1 parent 91dc881 commit 94b95e1

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

Admin/Controller/Tile.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ public function actionDelete(ParameterBag $params)
4141
$plugin = $this->plugin('XF:Delete');
4242
return $plugin->actionDelete(
4343
$tile,
44-
$this->buildLink('if-gs-list/delete', $tile),
45-
$this->buildLink('if-gs-list/edit', $tile),
46-
$this->buildLink('if-gs-list'),
44+
$this->buildLink('if-gs-tiles/delete', $tile),
45+
$this->buildLink('if-gs-tiles/edit', $tile),
46+
$this->buildLink('if-gs-tiles'),
4747
$tile->title
4848
);
4949
}
@@ -56,7 +56,7 @@ public function actionSave(ParameterBag $params)
5656
else
5757
$tile = $this->em()->create('Inforge\GridShow:Tile');
5858
$this->tileSaveProcess($tile)->run();
59-
return $this->redirect($this->buildLink('if-gs-list') . $this->buildLinkHash($tile->tile_id));
59+
return $this->redirect($this->buildLink('if-gs-tiles') . $this->buildLinkHash($tile->tile_id));
6060
}
6161

6262
public function actionToggle()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"if_gs_list.json": {
3-
"hash": "3ceb722890c0cb0d1823e8cdd72bc25f"
2+
"if_gs_tiles.json": {
3+
"hash": "89f7d41c1e724e9d36703daaacdf3f1a"
44
}
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"parent_navigation_id": "communication",
33
"display_order": 150,
4-
"link": "if-gs-list",
4+
"link": "if-gs-tiles",
55
"icon": "",
66
"admin_permission_id": "ifGsTiles",
77
"debug_only": false,

_output/phrases/_metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"admin_navigation.if_gs_list.txt": {
2+
"admin_navigation.if_gs_tiles.txt": {
33
"global_cache": false,
44
"version_id": 1000070,
55
"version_string": "1.0.0",
File renamed without changes.

_output/routes/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"admin_if-gs-list_.json": {
3-
"hash": "23b2a079052c690e7306634c396d03e9"
2+
"admin_if-gs-tiles_.json": {
3+
"hash": "d6a5727c8f777bb48b83d03345bb34d2"
44
}
55
}
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"route_type": "admin",
3-
"route_prefix": "if-gs-list",
3+
"route_prefix": "if-gs-tiles",
44
"sub_name": "",
55
"format": ":int<tile_id,title>/",
66
"build_class": "",
77
"build_method": "",
88
"controller": "Inforge\\GridShow:Tile",
9-
"context": "if-gs-list",
9+
"context": "if-gs-tiles",
1010
"action_prefix": ""
1111
}

_output/templates/_metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
"admin/if_gs_tile_edit.html": {
33
"version_id": 1000070,
44
"version_string": "1.0.0",
5-
"hash": "40f0e578af0a2607a80a2bb6ab6f3402"
5+
"hash": "d3f6f762a39abbd6d444b259f7c3f9e8"
66
},
77
"admin/if_gs_tile_list.html": {
88
"version_id": 1000070,
99
"version_string": "1.0.0",
10-
"hash": "9217193fc2acd618a42f772cd3bb0e98"
10+
"hash": "b9f34fcd7b8a0b7e894e46dbf3dc093d"
1111
},
1212
"public/if_gs_gridshow_widget.html": {
1313
"version_id": 1000070,

_output/templates/admin/if_gs_tile_edit.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
</xf:if>
66

77
<xf:pageaction if="$tile.isUpdate()">
8-
<xf:button href="{{ link('if-gs-list/delete', $tile) }}" icon="delete" overlay="true" />
8+
<xf:button href="{{ link('if-gs-tiles/delete', $tile) }}" icon="delete" overlay="true" />
99
</xf:pageaction>
1010

11-
<xf:form action="{{ link('if-gs-list/save', $tile) }}" ajax="true" class="block">
11+
<xf:form action="{{ link('if-gs-tiles/save', $tile) }}" ajax="true" class="block">
1212
<div class="block-container">
1313
<div class="block-body">
1414
<xf:textboxrow name="title" value="{$tile.title}"

_output/templates/admin/if_gs_tile_list.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<xf:title>{{ phrase('if_gs_list_of_tiles') }}</xf:title>
22

33
<xf:pageaction>
4-
<xf:button href="{{ link('if-gs-list/add') }}" icon="add">{{ phrase('if_gs_add_tile') }}</xf:button>
4+
<xf:button href="{{ link('if-gs-tiles/add') }}" icon="add">{{ phrase('if_gs_add_tile') }}</xf:button>
55
</xf:pageaction>
66

77
<xf:if is="$tiles is not empty">
8-
<xf:form action="{{ link('if-gs-list/toggle') }}" class="block" ajax="true">
8+
<xf:form action="{{ link('if-gs-tiles/toggle') }}" class="block" ajax="true">
99
<div class="block-outer">
1010
<xf:macro template="filter_macros" name="quick_filter" arg-key="contents" arg-class="block-outer-opposite" />
1111
</div>
@@ -16,8 +16,8 @@
1616
<xf:datarow
1717
label="{$tile.title}"
1818
hint="{{ phrase('category:') }} {$tile.category}"
19-
href="{{ link('if-gs-list/edit', $tile) }}"
20-
delete="{{ link('if-gs-list/delete', $tile) }}">
19+
href="{{ link('if-gs-tiles/edit', $tile) }}"
20+
delete="{{ link('if-gs-tiles/delete', $tile) }}">
2121
<xf:toggle name="active[{$tile.tile_id}]" selected="$tile.active"
2222
class="dataList-cell--separated" submit="true"
2323
tooltip="{{ phrase('enable_disable_x', {'title': $tile.title}) }}" />

0 commit comments

Comments
 (0)