|
|
Mads Kiilerich
|
ee3343f3658f
|
8 years ago
|
|
style: drop form-horizontal - our style is much closer to plain Bootstrap forms
form-horizontal is made for grid markup. It give form-groups a negative margin to break out of the grid ... but the way we use it for settings, we have to do weird things to undo that. The default styling for forms is much closer to what we want. It looks ok without our custom styling and is easier to style to our style.
If we want grid markup with form-horizontal, it would be correct to re-introduce both at once.
|
|
|
Mads Kiilerich
|
a1f8bf0428c5
|
9 years ago
|
|
admin: clean-up of Gravatar and IP in user profile headers
Move things around and use Bootstrap compatible markup.
The user IP will rarely be relevant - especially not on the admin pages; the IP configuration there is more for other user's IP. It might however be somewhat relevant for a (non-admin) user to know his own IP. There is no obvious place to show that - it doesn't really fit in as a part of the user profile. Anyway, just show it under Show Permissions.
|
|
|
Mads Kiilerich
|
3dcf1f82311a
|
9 years ago
|
|
controllers: avoid setting request state in controller instances - set it in the thread global request variable
In TurboGears, controllers are singletons and we should avoid using instance variables for any volatile data. Instead, use the "global thread local" request context.
With everything in request, some use of c is dropped.
Note: kallithea/controllers/api/__init__.py still use instance variables that will cause problems with TurboGears.
|
|
|
Mads Kiilerich
|
dd42c2ad28d7
|
9 years ago
|
|
style: drop 'input' class inside 'form-group'
As long as we use the old styling, just apply styling to div inside form-group.
Based on work by Dominik Ruf.
|
|
|
domruf
|
67e53a272e1a
|
9 years ago
|
|
templates: use Bootstrap compatible 'form-control' name instead of 'medium' & co
In Bootstrap, form controls tend to be 100%.
|
|
|
Mads Kiilerich
|
bc97f0d206fe
|
9 years ago
|
|
style: fix structure of my account profile
The avatar was outside the usual wrapping structure.
|
|
|
Mads Kiilerich
|
6f4f39b21302
|
9 years ago
|
|
|
|
|
Mads Kiilerich
|
68d3315c48d4
|
9 years ago
|
|
|
|
|
Mads Kiilerich
|
d1923cd0521c
|
9 years ago
|
|
style: refactor form label styling to prepare for Bootstrap and get rid of wrapping with 'label' class
Based on work by Dominik Ruf.
|
|
|
Mads Kiilerich
|
d27572fa323c
|
9 years ago
|
|
style: put all admin form buttons in a form-group, as our future Bootstrap likes it
Based on work by Dominik Ruf.
|
|
|
Mads Kiilerich
|
4304595d246c
|
9 years ago
|
|
style: in preparation for Bootstrap, refactor to use Bootstrap compatible form class names
Based on work by Dominik Ruf.
Mostly:
sed -i \ -e 's,<table>,<table class="table">,g' \ -e 's,<div class="fields">,<div class="form-horizontal">,g' \ -e 's,<div class="field">,<div class="form-group">,g' \ -e 's,<label for="\([^"]*\)">,<label class="control-label" for="\1">,g' \ `hg mani`
cat kallithea/public/css/style.css | \ sed -e '/\.fields\>/{p;s/\.fields/.form-horizontal/g}' | \ sed -e '/\.fields\>/s/ {$/,/g' | \ sed -e '/\.field\>/{p;s/\.field\>/.form-group/g}' | \ sed -e '/\.field\>/s/ {$/,/g' | \ sed -e '/\.fields\>.*\.form-group\>/d' | \ sed -e '/\.form-horizontal\>.*\.field\>/d ' | \ cat - > kallithea/public/css/style.css.tmp mv kallithea/public/css/style.css.tmp kallithea/public/css/style.css
|
|
|
domruf
|
b7654d1675da
|
9 years ago
|
|
style: in preparation for bootstrap, use bootstrap compatible button class names
Give all buttons a styling (default, success, danger, warning) and rename the sizes to sm and xs.
This is a subset of a bigger changeset. The subset was extracted by Mads Kiilerich, mostly by:
sed -i \ -e 's,btn btn-small,btn btn-default btn-sm,g' \ -e 's,btn btn-mini,btn btn-default btn-xs,g' \ -e 's,btn-default btn-\(xs\|sm\) btn-\(success\|danger\|warning\),btn-\2 btn-\1,g' \ -e 's,class_="btn",class_="btn btn-default",g' \ `hg mani`
|
|
|
Mads Kiilerich
|
f287754980cc
|
10 years ago
|
|
|
|
|
Mads Kiilerich
|
0a0595b15c6c
|
10 years ago
|
|
auth: make sure that users only can manage their own primary data if self registration is enabled
With the UI showing exactly which fields are used and which are ignored, there is no reason to show the 'External Source of Record' warning.
|
|
|
Mads Kiilerich
|
39bac9410169
|
10 years ago
|
|
|
|
|
Mads Kiilerich
|
40cfdd004bf6
|
10 years ago
|
|
css: match on the readonly-ness instead of explicitly setting 'disabled' class on input elements
Note: the 'disabled' class is 'readonly' and different from the html/css 'disabled' concept.
|
|
|
Mads Kiilerich
|
2b1928873c0a
|
10 years ago
|
|
users: cleanup of handling of the extern_type and extern_name fields in html forms
Note: There is controller support for editing extern_type and extern_name but no UI.
|
|
|
Mads Kiilerich
|
e50a56e61b23
|
10 years ago
|
|
users: avoid unnecessary handling of c.extern_type and c.extern_name when editing users
It is user data as anything else.
|
|
|
Søren Løvborg
|
4a2a66bf93c5
|
10 years ago
|
|
AuthUser: Drop ip_addr field
None of the AuthUser consumers actually need to get the IP address from the AuthUser object, so it's just redundant.
Also, AuthUser represents a user session, and should not be used as a generic user + IP address data structure.
|
|
|
Mads Kiilerich
|
5c6cc20d224b
|
11 years ago
|
|
spelling: fix title casing on translated template strings
Primarily texts.
|
|
|
Sean Farley
|
83087ae63bd6
|
11 years ago
|
|
|
|
|
Bradley M. Kuhn
|
f5c9018a5cf0
|
11 years ago
|
|
|
|
|
Bradley M. Kuhn
|
de26de99ac5b
|
11 years ago
|
|
|
|
|
Bradley M. Kuhn
|
d1addaf7a91e
|
11 years ago
|
|
Second step in two-part process to rename directories. This is the actual directory rename.
|