mirror of
				https://git.openwrt.org/project/luci.git
				synced 2025-10-31 10:49:03 +08:00 
			
		
		
		
	
			
				
					
						
					
					545de2a4b5b9881104bb5b3bd82a1f1ccf6b6b8a
				
			
			
		
	 David Härdeman
		
	
	545de2a4b5
	
	
	luci-base: add ability to hide section titles
			David Härdeman
		
	
	545de2a4b5
	
	
	luci-base: add ability to hide section titles
		
			
			The rationale here is that tabbed CBIMaps were introduced in commit
082fd9ff10.
With tabbed maps, code could typically look like this:
	m = new form.Map('foobar', _('FooBar'));
	m.tabbed = true;
	s = m.section(form.TypedSection, 'foo', _('foo Settings'));
The problem is that the title of "s" will be used as the name of the tab
rendered in "m", but also rendered as an <h3> right below the tab. IOW,
the same information will be presented twice, which looks weird.
Doing this instead...
	m = new form.Map('foobar', _('FooBar'));
	m.tabbed = true;
	s = m.section(form.TypedSection, 'foo');
...means that the superfluous <h3> won't be rendered (since "s" has no
title), but the tab will then simply have the name of the section
("foo"), which can't be translated (bad).
After this change, the tabbed map can be written like this:
	m = new form.Map('foobar', _('FooBar'));
	m.tabbed = true;
	s = m.section(form.TypedSection, 'foo', _('foo Settings'));
	s.hidetitle = true;
Which will give the Map tab the name "foo Settings", but won't add a
title for the TypedSection right under the tab.
Signed-off-by: David Härdeman <david@hardeman.nu>
		
	
OpenWrt luci feed
Description
This is the OpenWrt "luci"-feed containing LuCI - OpenWrt Configuration Interface.
Usage
This feed is enabled by default. Your feeds.conf.default (or feeds.conf) should contain a line like:
src-git luci https://github.com/openwrt/luci.git
To install all its package definitions, run:
./scripts/feeds update luci
./scripts/feeds install -a -p luci
API Reference
You can browse the generated API documentation directly on Github.
Development
Documentation for developing and extending LuCI can be found in the Wiki
License
See LICENSE file.
Package Guidelines
See CONTRIBUTING.md file.
Translation status
Use Weblate instead of direct editing of the *.po files.
Description
				
					Languages
				
				
								
								
									JavaScript
								
								47.1%
							
						
							
								
								
									C
								
								25.4%
							
						
							
								
								
									Lua
								
								10.4%
							
						
							
								
								
									HTML
								
								5.7%
							
						
							
								
								
									CSS
								
								3.2%
							
						
							
								
								
									Other
								
								8.2%