Use inline svg for new diary entry icon

This commit is contained in:
Anton Khorev 2024-07-03 15:14:11 +03:00
parent f9db802c7b
commit 29583e0713
3 changed files with 8 additions and 74 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 119 B

View file

@ -1,73 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
id="svg3864"
version="1.1"
inkscape:version="0.48.2 r9819"
width="16"
height="16"
sodipodi:docname="new.svg"
inkscape:export-filename="/Users/saman/work_repos/openstreetmap-website/app/assets/images/new.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90">
<metadata
id="metadata3870">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
</cc:Work>
</rdf:RDF>
</metadata>
<defs
id="defs3868" />
<sodipodi:namedview
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1"
objecttolerance="10"
gridtolerance="10"
guidetolerance="10"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:window-width="1405"
inkscape:window-height="1009"
id="namedview3866"
showgrid="false"
inkscape:zoom="1"
inkscape:cx="11.60995"
inkscape:cy="5.4274399"
inkscape:window-x="190"
inkscape:window-y="0"
inkscape:window-maximized="0"
inkscape:current-layer="svg3864"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0">
<inkscape:grid
type="xygrid"
id="grid3920"
empspacing="5"
visible="true"
enabled="true"
snapvisiblegridlinesonly="true" />
</sodipodi:namedview>
<path
style="color:#000000;fill:#1313ff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:1;marker:none;visibility:visible;display:inline;overflow:visible;enable-background:accumulate"
d="M 2,0 C 0.892,0 0,0.892 0,2 l 0,12 c 0,1.108 0.892,2 2,2 l 12,0 c 1.108,0 2,-0.892 2,-2 L 16,2 C 16,0.892 15.108,0 14,0 z M 9,4 9,7 12,7 12,9 9,9 9,12 7,12 7,9 4,9 4,7 7,7 7,4 z"
id="rect3924"
inkscape:connector-curvature="0"
sodipodi:nodetypes="sssssssssccccccccccccc" />
</svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

View file

@ -25,7 +25,14 @@
<% end %> <% end %>
<% if @user && @user == current_user || !@user && current_user %> <% if @user && @user == current_user || !@user && current_user %>
<li><%= link_to image_tag("new.png") + t(".new"), new_diary_entry_path, :class => "icon-link", :title => t(".new_title") %></li> <li>
<%= link_to new_diary_entry_path, :class => "icon-link", :title => t(".new_title") do %>
<svg width="16" height="16">
<path d="M2 0 a2 2 0 0 0 -2 2 v12 a2 2 0 0 0 2 2 h12 a2 2 0 0 0 2 -2 v-12 a2 2 0 0 0 -2 -2 z M4 7 h3 v-3 h2 v3 h3 v2 h-3 v3 h-2 v-3 h-3 z" fill="currentColor" />
</svg>
<%= t(".new") %>
<% end %>
</li>
<% end %> <% end %>
</ul> </ul>
</nav> </nav>