Skip to content

Commit 39e9646

Browse files
committed
Refactoring action names
1 parent e66b13f commit 39e9646

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

Resources/config/services.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ services:
4141
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:index']]
4242
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:list', 'list']]
4343
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:index', 'index']]
44-
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:createSubdirectory', 'createsubdirectory']]
45-
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:createFile', 'createfile']]
44+
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:createSubdirectory', 'subdirectory.create']]
45+
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:createFile', 'file.create']]
4646
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:delete', 'delete']]
47-
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:uploadFile', 'uploadfile']]
47+
- [registerDirectoryAction, ['DdrGitkiBundle:Directory:uploadFile', 'file.upload']]
4848
- [registerExtension, ['txt', 'Text', 'DdrGitkiBundle:Text:view','DdrGitkiBundle:Text:edit']]
4949
- [registerExtension, ['md', 'Markdown', 'DdrGitkiBundle:Markdown:view','DdrGitkiBundle:Markdown:edit']]
5050

Resources/views/Directory/list.html.twig

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@
1212
<ul class="dropdown-menu dropdown-menu-right" role="menu" aria-labelledby="actions-dropdown">
1313

1414
<li role="presentation">
15-
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'createsubdirectory'}) }}"
15+
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'subdirectory.create'}) }}"
1616
role="menuitem" tabindex="-1" title="Add Folder">
1717
<span class="fa fa-fw fa-plus"></span> Add folder
1818
</a>
1919
</li>
2020
<li role="presentation">
21-
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'uploadfile'}) }}"
21+
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'file.upload'}) }}"
2222
role="menuitem" tabindex="-1" title="Upload File">
2323
<span class="fa fa-fw fa-upload"></span> Upload file
2424
</a>
2525
</li>
2626
{% for extension,name in editableExtensions %}
2727
<li role="presentation">
28-
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'createfile', 'extension': extension}) }}"
28+
<a href="{{ path('ddr_gitki_directory', {'path': path, 'action': 'file.create', 'extension': extension}) }}"
2929
role="menuitem" tabindex="-1" title="Create {{ name }} file">
3030
<span class="fa fa-fw fa-file-o"></span> Create {{ name }} file
3131
</a>

Resources/views/File/view.html.twig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@
5151
</a>
5252
</li>
5353
<li role="presentation">
54-
<a href="{{ path('ddr_gitki_directory', {'path': path.parentPath, 'action': 'upload'}) }}"
54+
<a href="{{ path('ddr_gitki_directory', {'path': path.parentPath, 'action': 'file.upload'}) }}"
5555
role="menuitem" tabindex="-1" title="Upload File to containing folder">
5656
<span class="fa fa-fw fa-upload"></span> Upload file
5757
</a>
5858
</li>
5959
{% for extension,name in editableExtensions %}
6060
<li role="presentation">
61-
<a href="{{ path('ddr_gitki_directory', {'path': path.parentPath, 'action': 'createfile', 'extension': extension}) }}"
61+
<a href="{{ path('ddr_gitki_directory', {'path': path.parentPath, 'action': 'file.create', 'extension': extension}) }}"
6262
role="menuitem" tabindex="-1" title="Create {{ name }} file">
6363
<span class="fa fa-fw fa-file-o"></span> Create {{ name }} file
6464
</a>

0 commit comments

Comments
 (0)