libs/web: cbi: assign dedicated css class to last child
authorJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Sep 2011 16:34:52 +0000 (16:34 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Thu, 22 Sep 2011 16:34:52 +0000 (16:34 +0000)
libs/web/luasrc/view/cbi/full_valueheader.htm

index e3711f0..aaf0854 100644 (file)
@@ -1,4 +1,4 @@
-<div class="cbi-value<% if self.error and self.error[section] then %> cbi-value-error<% end %>" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
+<div class="cbi-value<% if self.error and self.error[section] then %> cbi-value-error<% end %><% if self.last_child then %> cbi-value-last<% end %>" id="cbi-<%=self.config.."-"..section.."-"..self.option%>">
        <%- if self.title and #self.title > 0 then -%>
        <label class="cbi-value-title"<%= attr("for", cbid) %>>
        <%- if self.titleref then -%><a title="<%=self.titledesc or translate('Go to relevant configuration page')%>" class="cbi-title-ref" href="<%=self.titleref%>"><%- end -%>