+ return direct_to_template(request, 'explorer/panels/xmleditor.html', extra_context={
+ 'fpath': path,
+ 'text': text,
+ })
+
+
+def gallery_panel(request, path):
+ return direct_to_template(request, 'explorer/panels/gallery.html', extra_context={
+ 'fpath': path,
+ 'form': forms.ImageFoldersForm(),
+ })
+
+
+def htmleditor_panel(request, path):
+ return direct_to_template(request, 'explorer/panels/htmleditor.html', extra_context={
+ 'fpath': path,
+ 'html': html.transform(repo.get_file(path).data(), is_file=False),
+ })
+
+
+def dceditor_panel(request, path):
+ text = repo.get_file(path).data()
+ form = forms.DublinCoreForm(text=text)