Changeset 2164


Ignore:
Timestamp:
Aug 23, 2012, 3:32:46 PM (6 years ago)
Author:
matthijs
Message:

luci-torrent: Show filesystem used for each partition.

References: #1186

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/mountd/files/usr/lib/lua/luci/fmg.lua

    r2162 r2164  
    6565                        supported = s["part"..i.."supported"]
    6666                        err = s["part"..i.."error"]
     67                        fs = s["fs"..i]
    6768
    6869                        if name and supported == "1" and err == "0" then
    6970                                img_path = "/tmp/mounts/"..name.."/FoneraApps/"..img.."."..fw..".fmg"
    7071                                installed = posix.stat(img_path) ~= nil
    71                                 a[#a+1] = {name=name, installed=installed}
     72                                a[#a+1] = {name=name, installed=installed, fs=fs}
    7273                        end
    7374                end
  • trunk/luci/applications/luci-torrent/luasrc/view/torrent/notrunning.htm

    r2163 r2164  
    2121%>
    2222        <li>
    23                 <a id="startup" class="icon" href="<%=luci.dispatcher.build_url("torrent", "startup")%>?disc=<%=v.name%>" style="background-image: url(<%=luci.config.main.resourcebase%>/icons/plugins/torrent.png);"><%:torrent_startup Startup%> <%=v.name%></a>
     23                <a id="startup" class="icon" href="<%=luci.dispatcher.build_url("torrent", "startup")%>?disc=<%=v.name%>" style="background-image: url(<%=luci.config.main.resourcebase%>/icons/plugins/torrent.png);"><%:torrent_startup Startup%> <%=v.name%> (<%=v.fs%>)</a>
    2424        </li>
    2525<%      end
     
    2828        if not v.installed then %>
    2929        <li>
    30         <a id="startup" class="icon" href="<%=luci.dispatcher.build_url("torrent", "download")%>?disc=<%=v.name%>" style="background-image: url(<%=luci.config.main.mediaurlbase%>/icons/firmware.png);"><%:torrent_install Install on%> <%=v.name%></a>
     30        <a id="startup" class="icon" href="<%=luci.dispatcher.build_url("torrent", "download")%>?disc=<%=v.name%>" style="background-image: url(<%=luci.config.main.mediaurlbase%>/icons/firmware.png);"><%:torrent_install Install on%> <%=v.name%> (<%=v.fs%>)</a>
    3131        </li>
    3232        <%end
Note: See TracChangeset for help on using the changeset viewer.