Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Markech
refinerycms-photo-gallery
Commits
4681efd3
Commit
4681efd3
authored
Dec 28, 2016
by
Martin Markech
Browse files
fix submenu icons
parent
ca71cb1f
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/assets/stylesheets/refinery/photo_gallery/admin/photo_gallery.css.scss
View file @
4681efd3
.folder_icon
{
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/folder.png'
);
}
.folder_add_icon
{
.folder_add_icon
{
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/folder_add.png'
);
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/folder_add.png'
);
}
}
...
@@ -31,10 +28,6 @@
...
@@ -31,10 +28,6 @@
.settings_icon
{
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/cog.png'
);
}
ul
.collapsible_menu
li
{
ul
.collapsible_menu
li
{
position
:
relative
;
position
:
relative
;
}
}
...
@@ -47,12 +40,7 @@ ul.collapsible_menu li span.arrow {
...
@@ -47,12 +40,7 @@ ul.collapsible_menu li span.arrow {
height
:
7px
;
height
:
7px
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
ul
.collapsible_menu
li
span
.arrow
{
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/up.gif'
);
}
ul
.collapsible_menu
li
.closed
span
.arrow
{
background-image
:
image-url
(
'refinery/photo_gallery/admin/icons/down.gif'
);
}
ul
.collapsible_menu
>
div
{
ul
.collapsible_menu
>
div
{
width
:
93%
;
width
:
93%
;
margin
:
0px
auto
;
margin
:
0px
auto
;
...
...
app/views/refinery/photo_gallery/admin/_submenu.html.erb
View file @
4681efd3
<
section
id=
'actions'
>
<
nav
id=
'actions'
class=
'multilist'
>
<ul
class=
'
search_list
'
>
<ul
class=
'
collapsible_menu
'
>
<li
class=
'not_a_link'
>
<li
class=
'not_a_link'
>
<%
if
params
[
:controller
]
==
"refinery/photo_gallery/admin/collections"
%>
<%=
render
:partial
=>
"/refinery/admin/search"
,
:locals
=>
{
:url
=>
refinery
.
photo_gallery_admin_collections_path
}
%>
<%
elsif
params
[
:controller
]
==
"refinery/photo_gallery/admin/albums"
%>
<%=
render
:partial
=>
"/refinery/admin/search"
,
:locals
=>
{
:url
=>
refinery
.
photo_gallery_admin_albums_path
}
%>
<%
end
%>
</li>
</ul>
<ul
>
<li>
<%=
link_to
t
(
'.albums.manage'
),
refinery
.
photo_gallery_admin_albums_path
,
<%=
link_to
t
(
'.albums.manage'
),
refinery
.
photo_gallery_admin_albums_path
,
:class
=>
''
%>
:class
=>
'
folder_icon
'
%>
</li>
</li>
<li>
<li>
<%=
link_to
t
(
'.albums.new'
),
refinery
.
new_photo_gallery_admin_album_path
,
<%=
link_to
t
(
'.albums.new'
),
refinery
.
new_photo_gallery_admin_album_path
,
:class
=>
''
%>
:class
=>
'
add_icon
'
%>
</li>
</li>
</ul>
</ul>
<ul
>
<ul
class=
'collapsible_menu'
>
<li>
<li
class=
'not_a_link'
>
<%=
link_to
t
(
'.collections.manage'
),
refinery
.
photo_gallery_admin_collections_path
,
<%=
link_to
t
(
'.collections.manage'
),
refinery
.
photo_gallery_admin_collections_path
,
:class
=>
''
%>
:class
=>
'
folder_icon
'
%>
</li>
</li>
<li>
<li>
<%=
link_to
t
(
'.collections.new'
),
refinery
.
new_photo_gallery_admin_collection_path
,
<%=
link_to
t
(
'.collections.new'
),
refinery
.
new_photo_gallery_admin_collection_path
,
:class
=>
''
%>
:class
=>
'
add_icon
'
%>
</li>
</li>
</ul>
</ul>
</
section
>
</
nav
>
app/views/refinery/photo_gallery/admin/photos/_form_fields.html.erb
View file @
4681efd3
...
@@ -15,26 +15,6 @@
...
@@ -15,26 +15,6 @@
<%=
p
.
text_area
:description
,
:rows
=>
"5"
,
:cols
=>
"57"
%>
<%=
p
.
text_area
:description
,
:rows
=>
"5"
,
:cols
=>
"57"
%>
</div>
</div>
<%
if
Refinery
::
PhotoGallery
.
admin_photo_options_show_url
%>
<div
class=
'field'
>
<%=
p
.
label
:url
%>
<%=
p
.
text_field
:url
,
:class
=>
"larger"
%>
</div>
<%
end
%>
<%
if
Refinery
::
PhotoGallery
.
admin_photo_options_show_css_class
%>
<div
class=
'field'
>
<%=
p
.
label
:css_class
%>
<%=
p
.
text_field
:css_class
,
:class
=>
"larger"
%>
</div>
<%
end
%>
<%
if
Refinery
::
PhotoGallery
.
admin_photo_options_show_preview_type
%>
<div
class=
'field'
>
<%=
p
.
label
:preview_type
%>
<%=
p
.
text_field
:preview_type
,
:class
=>
"larger"
%>
</div>
<%
end
%>
<div
class=
'field-group'
>
<div
class=
'field-group'
>
<%=
p
.
label
:longitude
,
:tooltip
=>
t
(
'.use_decimal_format'
)
%>
<%=
p
.
label
:longitude
,
:tooltip
=>
t
(
'.use_decimal_format'
)
%>
...
...
config/locales/sk.yml
View file @
4681efd3
...
@@ -20,11 +20,11 @@ sk:
...
@@ -20,11 +20,11 @@ sk:
submenu
:
submenu
:
collections
:
collections
:
title
:
Skupiny albumov
title
:
Skupiny albumov
manage
:
Spravovať
manage
:
Spravovať
skupinu
new
:
Vytvoriť novú skupinu albumov
new
:
Vytvoriť novú skupinu albumov
albums
:
albums
:
title
:
Abumy
title
:
Abumy
manage
:
Spravovať
manage
:
Spravovať
albumy
new
:
Vytvoriť nový albun
new
:
Vytvoriť nový albun
collections
:
collections
:
collection
:
collection
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment