##// END OF EJS Templates
implemented #725 Pull Request View - Show origin repo URL
marcink -
r3170:2ab2eed4 beta
parent child Browse files
Show More
@@ -1,1920 +1,1947 b''
1 1 # -*- coding: utf-8 -*-
2 2 """
3 3 rhodecode.model.db
4 4 ~~~~~~~~~~~~~~~~~~
5 5
6 6 Database Models for RhodeCode
7 7
8 8 :created_on: Apr 08, 2010
9 9 :author: marcink
10 10 :copyright: (C) 2010-2012 Marcin Kuzminski <marcin@python-works.com>
11 11 :license: GPLv3, see COPYING for more details.
12 12 """
13 13 # This program is free software: you can redistribute it and/or modify
14 14 # it under the terms of the GNU General Public License as published by
15 15 # the Free Software Foundation, either version 3 of the License, or
16 16 # (at your option) any later version.
17 17 #
18 18 # This program is distributed in the hope that it will be useful,
19 19 # but WITHOUT ANY WARRANTY; without even the implied warranty of
20 20 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 21 # GNU General Public License for more details.
22 22 #
23 23 # You should have received a copy of the GNU General Public License
24 24 # along with this program. If not, see <http://www.gnu.org/licenses/>.
25 25
26 26 import os
27 27 import logging
28 28 import datetime
29 29 import traceback
30 30 import hashlib
31 31 import time
32 32 from collections import defaultdict
33 33
34 34 from sqlalchemy import *
35 35 from sqlalchemy.ext.hybrid import hybrid_property
36 36 from sqlalchemy.orm import relationship, joinedload, class_mapper, validates
37 37 from sqlalchemy.exc import DatabaseError
38 38 from beaker.cache import cache_region, region_invalidate
39 39 from webob.exc import HTTPNotFound
40 40
41 41 from pylons.i18n.translation import lazy_ugettext as _
42 42
43 43 from rhodecode.lib.vcs import get_backend
44 44 from rhodecode.lib.vcs.utils.helpers import get_scm
45 45 from rhodecode.lib.vcs.exceptions import VCSError
46 46 from rhodecode.lib.vcs.utils.lazy import LazyProperty
47 47
48 48 from rhodecode.lib.utils2 import str2bool, safe_str, get_changeset_safe, \
49 49 safe_unicode, remove_suffix, remove_prefix
50 50 from rhodecode.lib.compat import json
51 51 from rhodecode.lib.caching_query import FromCache
52 52
53 53 from rhodecode.model.meta import Base, Session
54 54
55 55 URL_SEP = '/'
56 56 log = logging.getLogger(__name__)
57 57
58 58 #==============================================================================
59 59 # BASE CLASSES
60 60 #==============================================================================
61 61
62 62 _hash_key = lambda k: hashlib.md5(safe_str(k)).hexdigest()
63 63
64 64
65 65 class BaseModel(object):
66 66 """
67 67 Base Model for all classess
68 68 """
69 69
70 70 @classmethod
71 71 def _get_keys(cls):
72 72 """return column names for this model """
73 73 return class_mapper(cls).c.keys()
74 74
75 75 def get_dict(self):
76 76 """
77 77 return dict with keys and values corresponding
78 78 to this model data """
79 79
80 80 d = {}
81 81 for k in self._get_keys():
82 82 d[k] = getattr(self, k)
83 83
84 84 # also use __json__() if present to get additional fields
85 85 _json_attr = getattr(self, '__json__', None)
86 86 if _json_attr:
87 87 # update with attributes from __json__
88 88 if callable(_json_attr):
89 89 _json_attr = _json_attr()
90 90 for k, val in _json_attr.iteritems():
91 91 d[k] = val
92 92 return d
93 93
94 94 def get_appstruct(self):
95 95 """return list with keys and values tupples corresponding
96 96 to this model data """
97 97
98 98 l = []
99 99 for k in self._get_keys():
100 100 l.append((k, getattr(self, k),))
101 101 return l
102 102
103 103 def populate_obj(self, populate_dict):
104 104 """populate model with data from given populate_dict"""
105 105
106 106 for k in self._get_keys():
107 107 if k in populate_dict:
108 108 setattr(self, k, populate_dict[k])
109 109
110 110 @classmethod
111 111 def query(cls):
112 112 return Session().query(cls)
113 113
114 114 @classmethod
115 115 def get(cls, id_):
116 116 if id_:
117 117 return cls.query().get(id_)
118 118
119 119 @classmethod
120 120 def get_or_404(cls, id_):
121 121 try:
122 122 id_ = int(id_)
123 123 except (TypeError, ValueError):
124 124 raise HTTPNotFound
125 125
126 126 res = cls.query().get(id_)
127 127 if not res:
128 128 raise HTTPNotFound
129 129 return res
130 130
131 131 @classmethod
132 132 def getAll(cls):
133 133 return cls.query().all()
134 134
135 135 @classmethod
136 136 def delete(cls, id_):
137 137 obj = cls.query().get(id_)
138 138 Session().delete(obj)
139 139
140 140 def __repr__(self):
141 141 if hasattr(self, '__unicode__'):
142 142 # python repr needs to return str
143 143 return safe_str(self.__unicode__())
144 144 return '<DB:%s>' % (self.__class__.__name__)
145 145
146 146
147 147 class RhodeCodeSetting(Base, BaseModel):
148 148 __tablename__ = 'rhodecode_settings'
149 149 __table_args__ = (
150 150 UniqueConstraint('app_settings_name'),
151 151 {'extend_existing': True, 'mysql_engine': 'InnoDB',
152 152 'mysql_charset': 'utf8'}
153 153 )
154 154 app_settings_id = Column("app_settings_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
155 155 app_settings_name = Column("app_settings_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
156 156 _app_settings_value = Column("app_settings_value", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
157 157
158 158 def __init__(self, k='', v=''):
159 159 self.app_settings_name = k
160 160 self.app_settings_value = v
161 161
162 162 @validates('_app_settings_value')
163 163 def validate_settings_value(self, key, val):
164 164 assert type(val) == unicode
165 165 return val
166 166
167 167 @hybrid_property
168 168 def app_settings_value(self):
169 169 v = self._app_settings_value
170 170 if self.app_settings_name in ["ldap_active",
171 171 "default_repo_enable_statistics",
172 172 "default_repo_enable_locking",
173 173 "default_repo_private",
174 174 "default_repo_enable_downloads"]:
175 175 v = str2bool(v)
176 176 return v
177 177
178 178 @app_settings_value.setter
179 179 def app_settings_value(self, val):
180 180 """
181 181 Setter that will always make sure we use unicode in app_settings_value
182 182
183 183 :param val:
184 184 """
185 185 self._app_settings_value = safe_unicode(val)
186 186
187 187 def __unicode__(self):
188 188 return u"<%s('%s:%s')>" % (
189 189 self.__class__.__name__,
190 190 self.app_settings_name, self.app_settings_value
191 191 )
192 192
193 193 @classmethod
194 194 def get_by_name(cls, key):
195 195 return cls.query()\
196 196 .filter(cls.app_settings_name == key).scalar()
197 197
198 198 @classmethod
199 199 def get_by_name_or_create(cls, key):
200 200 res = cls.get_by_name(key)
201 201 if not res:
202 202 res = cls(key)
203 203 return res
204 204
205 205 @classmethod
206 206 def get_app_settings(cls, cache=False):
207 207
208 208 ret = cls.query()
209 209
210 210 if cache:
211 211 ret = ret.options(FromCache("sql_cache_short", "get_hg_settings"))
212 212
213 213 if not ret:
214 214 raise Exception('Could not get application settings !')
215 215 settings = {}
216 216 for each in ret:
217 217 settings['rhodecode_' + each.app_settings_name] = \
218 218 each.app_settings_value
219 219
220 220 return settings
221 221
222 222 @classmethod
223 223 def get_ldap_settings(cls, cache=False):
224 224 ret = cls.query()\
225 225 .filter(cls.app_settings_name.startswith('ldap_')).all()
226 226 fd = {}
227 227 for row in ret:
228 228 fd.update({row.app_settings_name: row.app_settings_value})
229 229
230 230 return fd
231 231
232 232 @classmethod
233 233 def get_default_repo_settings(cls, cache=False, strip_prefix=False):
234 234 ret = cls.query()\
235 235 .filter(cls.app_settings_name.startswith('default_')).all()
236 236 fd = {}
237 237 for row in ret:
238 238 key = row.app_settings_name
239 239 if strip_prefix:
240 240 key = remove_prefix(key, prefix='default_')
241 241 fd.update({key: row.app_settings_value})
242 242
243 243 return fd
244 244
245 245
246 246 class RhodeCodeUi(Base, BaseModel):
247 247 __tablename__ = 'rhodecode_ui'
248 248 __table_args__ = (
249 249 UniqueConstraint('ui_key'),
250 250 {'extend_existing': True, 'mysql_engine': 'InnoDB',
251 251 'mysql_charset': 'utf8'}
252 252 )
253 253
254 254 HOOK_UPDATE = 'changegroup.update'
255 255 HOOK_REPO_SIZE = 'changegroup.repo_size'
256 256 HOOK_PUSH = 'changegroup.push_logger'
257 257 HOOK_PRE_PUSH = 'prechangegroup.pre_push'
258 258 HOOK_PULL = 'outgoing.pull_logger'
259 259 HOOK_PRE_PULL = 'preoutgoing.pre_pull'
260 260
261 261 ui_id = Column("ui_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
262 262 ui_section = Column("ui_section", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
263 263 ui_key = Column("ui_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
264 264 ui_value = Column("ui_value", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
265 265 ui_active = Column("ui_active", Boolean(), nullable=True, unique=None, default=True)
266 266
267 267 @classmethod
268 268 def get_by_key(cls, key):
269 269 return cls.query().filter(cls.ui_key == key).scalar()
270 270
271 271 @classmethod
272 272 def get_builtin_hooks(cls):
273 273 q = cls.query()
274 274 q = q.filter(cls.ui_key.in_([cls.HOOK_UPDATE, cls.HOOK_REPO_SIZE,
275 275 cls.HOOK_PUSH, cls.HOOK_PRE_PUSH,
276 276 cls.HOOK_PULL, cls.HOOK_PRE_PULL]))
277 277 return q.all()
278 278
279 279 @classmethod
280 280 def get_custom_hooks(cls):
281 281 q = cls.query()
282 282 q = q.filter(~cls.ui_key.in_([cls.HOOK_UPDATE, cls.HOOK_REPO_SIZE,
283 283 cls.HOOK_PUSH, cls.HOOK_PRE_PUSH,
284 284 cls.HOOK_PULL, cls.HOOK_PRE_PULL]))
285 285 q = q.filter(cls.ui_section == 'hooks')
286 286 return q.all()
287 287
288 288 @classmethod
289 289 def get_repos_location(cls):
290 290 return cls.get_by_key('/').ui_value
291 291
292 292 @classmethod
293 293 def create_or_update_hook(cls, key, val):
294 294 new_ui = cls.get_by_key(key) or cls()
295 295 new_ui.ui_section = 'hooks'
296 296 new_ui.ui_active = True
297 297 new_ui.ui_key = key
298 298 new_ui.ui_value = val
299 299
300 300 Session().add(new_ui)
301 301
302 302 def __repr__(self):
303 303 return '<DB:%s[%s:%s]>' % (self.__class__.__name__, self.ui_key,
304 304 self.ui_value)
305 305
306 306
307 307 class User(Base, BaseModel):
308 308 __tablename__ = 'users'
309 309 __table_args__ = (
310 310 UniqueConstraint('username'), UniqueConstraint('email'),
311 311 Index('u_username_idx', 'username'),
312 312 Index('u_email_idx', 'email'),
313 313 {'extend_existing': True, 'mysql_engine': 'InnoDB',
314 314 'mysql_charset': 'utf8'}
315 315 )
316 316 DEFAULT_USER = 'default'
317 317 DEFAULT_PERMISSIONS = [
318 318 'hg.register.manual_activate', 'hg.create.repository',
319 319 'hg.fork.repository', 'repository.read', 'group.read'
320 320 ]
321 321 user_id = Column("user_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
322 322 username = Column("username", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
323 323 password = Column("password", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
324 324 active = Column("active", Boolean(), nullable=True, unique=None, default=True)
325 325 admin = Column("admin", Boolean(), nullable=True, unique=None, default=False)
326 326 name = Column("firstname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
327 327 lastname = Column("lastname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
328 328 _email = Column("email", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
329 329 last_login = Column("last_login", DateTime(timezone=False), nullable=True, unique=None, default=None)
330 330 ldap_dn = Column("ldap_dn", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
331 331 api_key = Column("api_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
332 332 inherit_default_permissions = Column("inherit_default_permissions", Boolean(), nullable=False, unique=None, default=True)
333 333
334 334 user_log = relationship('UserLog')
335 335 user_perms = relationship('UserToPerm', primaryjoin="User.user_id==UserToPerm.user_id", cascade='all')
336 336
337 337 repositories = relationship('Repository')
338 338 user_followers = relationship('UserFollowing', primaryjoin='UserFollowing.follows_user_id==User.user_id', cascade='all')
339 339 followings = relationship('UserFollowing', primaryjoin='UserFollowing.user_id==User.user_id', cascade='all')
340 340
341 341 repo_to_perm = relationship('UserRepoToPerm', primaryjoin='UserRepoToPerm.user_id==User.user_id', cascade='all')
342 342 repo_group_to_perm = relationship('UserRepoGroupToPerm', primaryjoin='UserRepoGroupToPerm.user_id==User.user_id', cascade='all')
343 343
344 344 group_member = relationship('UsersGroupMember', cascade='all')
345 345
346 346 notifications = relationship('UserNotification', cascade='all')
347 347 # notifications assigned to this user
348 348 user_created_notifications = relationship('Notification', cascade='all')
349 349 # comments created by this user
350 350 user_comments = relationship('ChangesetComment', cascade='all')
351 351 #extra emails for this user
352 352 user_emails = relationship('UserEmailMap', cascade='all')
353 353
354 354 @hybrid_property
355 355 def email(self):
356 356 return self._email
357 357
358 358 @email.setter
359 359 def email(self, val):
360 360 self._email = val.lower() if val else None
361 361
362 362 @property
363 363 def firstname(self):
364 364 # alias for future
365 365 return self.name
366 366
367 367 @property
368 368 def emails(self):
369 369 other = UserEmailMap.query().filter(UserEmailMap.user==self).all()
370 370 return [self.email] + [x.email for x in other]
371 371
372 372 @property
373 373 def ip_addresses(self):
374 374 ret = UserIpMap.query().filter(UserIpMap.user == self).all()
375 375 return [x.ip_addr for x in ret]
376 376
377 377 @property
378 378 def username_and_name(self):
379 379 return '%s (%s %s)' % (self.username, self.firstname, self.lastname)
380 380
381 381 @property
382 382 def full_name(self):
383 383 return '%s %s' % (self.firstname, self.lastname)
384 384
385 385 @property
386 386 def full_name_or_username(self):
387 387 return ('%s %s' % (self.firstname, self.lastname)
388 388 if (self.firstname and self.lastname) else self.username)
389 389
390 390 @property
391 391 def full_contact(self):
392 392 return '%s %s <%s>' % (self.firstname, self.lastname, self.email)
393 393
394 394 @property
395 395 def short_contact(self):
396 396 return '%s %s' % (self.firstname, self.lastname)
397 397
398 398 @property
399 399 def is_admin(self):
400 400 return self.admin
401 401
402 402 def __unicode__(self):
403 403 return u"<%s('id:%s:%s')>" % (self.__class__.__name__,
404 404 self.user_id, self.username)
405 405
406 406 @classmethod
407 407 def get_by_username(cls, username, case_insensitive=False, cache=False):
408 408 if case_insensitive:
409 409 q = cls.query().filter(cls.username.ilike(username))
410 410 else:
411 411 q = cls.query().filter(cls.username == username)
412 412
413 413 if cache:
414 414 q = q.options(FromCache(
415 415 "sql_cache_short",
416 416 "get_user_%s" % _hash_key(username)
417 417 )
418 418 )
419 419 return q.scalar()
420 420
421 421 @classmethod
422 422 def get_by_api_key(cls, api_key, cache=False):
423 423 q = cls.query().filter(cls.api_key == api_key)
424 424
425 425 if cache:
426 426 q = q.options(FromCache("sql_cache_short",
427 427 "get_api_key_%s" % api_key))
428 428 return q.scalar()
429 429
430 430 @classmethod
431 431 def get_by_email(cls, email, case_insensitive=False, cache=False):
432 432 if case_insensitive:
433 433 q = cls.query().filter(cls.email.ilike(email))
434 434 else:
435 435 q = cls.query().filter(cls.email == email)
436 436
437 437 if cache:
438 438 q = q.options(FromCache("sql_cache_short",
439 439 "get_email_key_%s" % email))
440 440
441 441 ret = q.scalar()
442 442 if ret is None:
443 443 q = UserEmailMap.query()
444 444 # try fetching in alternate email map
445 445 if case_insensitive:
446 446 q = q.filter(UserEmailMap.email.ilike(email))
447 447 else:
448 448 q = q.filter(UserEmailMap.email == email)
449 449 q = q.options(joinedload(UserEmailMap.user))
450 450 if cache:
451 451 q = q.options(FromCache("sql_cache_short",
452 452 "get_email_map_key_%s" % email))
453 453 ret = getattr(q.scalar(), 'user', None)
454 454
455 455 return ret
456 456
457 457 def update_lastlogin(self):
458 458 """Update user lastlogin"""
459 459 self.last_login = datetime.datetime.now()
460 460 Session().add(self)
461 461 log.debug('updated user %s lastlogin' % self.username)
462 462
463 463 def get_api_data(self):
464 464 """
465 465 Common function for generating user related data for API
466 466 """
467 467 user = self
468 468 data = dict(
469 469 user_id=user.user_id,
470 470 username=user.username,
471 471 firstname=user.name,
472 472 lastname=user.lastname,
473 473 email=user.email,
474 474 emails=user.emails,
475 475 api_key=user.api_key,
476 476 active=user.active,
477 477 admin=user.admin,
478 478 ldap_dn=user.ldap_dn,
479 479 last_login=user.last_login,
480 480 ip_addresses=user.ip_addresses
481 481 )
482 482 return data
483 483
484 484 def __json__(self):
485 485 data = dict(
486 486 full_name=self.full_name,
487 487 full_name_or_username=self.full_name_or_username,
488 488 short_contact=self.short_contact,
489 489 full_contact=self.full_contact
490 490 )
491 491 data.update(self.get_api_data())
492 492 return data
493 493
494 494
495 495 class UserEmailMap(Base, BaseModel):
496 496 __tablename__ = 'user_email_map'
497 497 __table_args__ = (
498 498 Index('uem_email_idx', 'email'),
499 499 UniqueConstraint('email'),
500 500 {'extend_existing': True, 'mysql_engine': 'InnoDB',
501 501 'mysql_charset': 'utf8'}
502 502 )
503 503 __mapper_args__ = {}
504 504
505 505 email_id = Column("email_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
506 506 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
507 507 _email = Column("email", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
508 508 user = relationship('User', lazy='joined')
509 509
510 510 @validates('_email')
511 511 def validate_email(self, key, email):
512 512 # check if this email is not main one
513 513 main_email = Session().query(User).filter(User.email == email).scalar()
514 514 if main_email is not None:
515 515 raise AttributeError('email %s is present is user table' % email)
516 516 return email
517 517
518 518 @hybrid_property
519 519 def email(self):
520 520 return self._email
521 521
522 522 @email.setter
523 523 def email(self, val):
524 524 self._email = val.lower() if val else None
525 525
526 526
527 527 class UserIpMap(Base, BaseModel):
528 528 __tablename__ = 'user_ip_map'
529 529 __table_args__ = (
530 530 UniqueConstraint('user_id', 'ip_addr'),
531 531 {'extend_existing': True, 'mysql_engine': 'InnoDB',
532 532 'mysql_charset': 'utf8'}
533 533 )
534 534 __mapper_args__ = {}
535 535
536 536 ip_id = Column("ip_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
537 537 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
538 538 ip_addr = Column("ip_addr", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
539 539 active = Column("active", Boolean(), nullable=True, unique=None, default=True)
540 540 user = relationship('User', lazy='joined')
541 541
542 542 @classmethod
543 543 def _get_ip_range(cls, ip_addr):
544 544 from rhodecode.lib import ipaddr
545 545 net = ipaddr.IPv4Network(ip_addr)
546 546 return [str(net.network), str(net.broadcast)]
547 547
548 548 def __json__(self):
549 549 return dict(
550 550 ip_addr=self.ip_addr,
551 551 ip_range=self._get_ip_range(self.ip_addr)
552 552 )
553 553
554 554
555 555 class UserLog(Base, BaseModel):
556 556 __tablename__ = 'user_logs'
557 557 __table_args__ = (
558 558 {'extend_existing': True, 'mysql_engine': 'InnoDB',
559 559 'mysql_charset': 'utf8'},
560 560 )
561 561 user_log_id = Column("user_log_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
562 562 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
563 563 username = Column("username", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
564 564 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True)
565 565 repository_name = Column("repository_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
566 566 user_ip = Column("user_ip", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
567 567 action = Column("action", UnicodeText(1200000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
568 568 action_date = Column("action_date", DateTime(timezone=False), nullable=True, unique=None, default=None)
569 569
570 570 @property
571 571 def action_as_day(self):
572 572 return datetime.date(*self.action_date.timetuple()[:3])
573 573
574 574 user = relationship('User')
575 575 repository = relationship('Repository', cascade='')
576 576
577 577
578 578 class UsersGroup(Base, BaseModel):
579 579 __tablename__ = 'users_groups'
580 580 __table_args__ = (
581 581 {'extend_existing': True, 'mysql_engine': 'InnoDB',
582 582 'mysql_charset': 'utf8'},
583 583 )
584 584
585 585 users_group_id = Column("users_group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
586 586 users_group_name = Column("users_group_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
587 587 users_group_active = Column("users_group_active", Boolean(), nullable=True, unique=None, default=None)
588 588 inherit_default_permissions = Column("users_group_inherit_default_permissions", Boolean(), nullable=False, unique=None, default=True)
589 589
590 590 members = relationship('UsersGroupMember', cascade="all, delete, delete-orphan", lazy="joined")
591 591 users_group_to_perm = relationship('UsersGroupToPerm', cascade='all')
592 592 users_group_repo_to_perm = relationship('UsersGroupRepoToPerm', cascade='all')
593 593
594 594 def __unicode__(self):
595 595 return u'<userGroup(%s)>' % (self.users_group_name)
596 596
597 597 @classmethod
598 598 def get_by_group_name(cls, group_name, cache=False,
599 599 case_insensitive=False):
600 600 if case_insensitive:
601 601 q = cls.query().filter(cls.users_group_name.ilike(group_name))
602 602 else:
603 603 q = cls.query().filter(cls.users_group_name == group_name)
604 604 if cache:
605 605 q = q.options(FromCache(
606 606 "sql_cache_short",
607 607 "get_user_%s" % _hash_key(group_name)
608 608 )
609 609 )
610 610 return q.scalar()
611 611
612 612 @classmethod
613 613 def get(cls, users_group_id, cache=False):
614 614 users_group = cls.query()
615 615 if cache:
616 616 users_group = users_group.options(FromCache("sql_cache_short",
617 617 "get_users_group_%s" % users_group_id))
618 618 return users_group.get(users_group_id)
619 619
620 620 def get_api_data(self):
621 621 users_group = self
622 622
623 623 data = dict(
624 624 users_group_id=users_group.users_group_id,
625 625 group_name=users_group.users_group_name,
626 626 active=users_group.users_group_active,
627 627 )
628 628
629 629 return data
630 630
631 631
632 632 class UsersGroupMember(Base, BaseModel):
633 633 __tablename__ = 'users_groups_members'
634 634 __table_args__ = (
635 635 {'extend_existing': True, 'mysql_engine': 'InnoDB',
636 636 'mysql_charset': 'utf8'},
637 637 )
638 638
639 639 users_group_member_id = Column("users_group_member_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
640 640 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
641 641 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
642 642
643 643 user = relationship('User', lazy='joined')
644 644 users_group = relationship('UsersGroup')
645 645
646 646 def __init__(self, gr_id='', u_id=''):
647 647 self.users_group_id = gr_id
648 648 self.user_id = u_id
649 649
650 650
651 651 class Repository(Base, BaseModel):
652 652 __tablename__ = 'repositories'
653 653 __table_args__ = (
654 654 UniqueConstraint('repo_name'),
655 655 Index('r_repo_name_idx', 'repo_name'),
656 656 {'extend_existing': True, 'mysql_engine': 'InnoDB',
657 657 'mysql_charset': 'utf8'},
658 658 )
659 659
660 660 repo_id = Column("repo_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
661 661 repo_name = Column("repo_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
662 662 clone_uri = Column("clone_uri", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
663 663 repo_type = Column("repo_type", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=False, default=None)
664 664 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=False, default=None)
665 665 private = Column("private", Boolean(), nullable=True, unique=None, default=None)
666 666 enable_statistics = Column("statistics", Boolean(), nullable=True, unique=None, default=True)
667 667 enable_downloads = Column("downloads", Boolean(), nullable=True, unique=None, default=True)
668 668 description = Column("description", String(10000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
669 669 created_on = Column('created_on', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
670 670 updated_on = Column('updated_on', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
671 671 landing_rev = Column("landing_revision", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=False, default=None)
672 672 enable_locking = Column("enable_locking", Boolean(), nullable=False, unique=None, default=False)
673 673 _locked = Column("locked", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=False, default=None)
674 674 _changeset_cache = Column("changeset_cache", LargeBinary(), nullable=True) #JSON data
675 675
676 676 fork_id = Column("fork_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True, unique=False, default=None)
677 677 group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=True, unique=False, default=None)
678 678
679 679 user = relationship('User')
680 680 fork = relationship('Repository', remote_side=repo_id)
681 681 group = relationship('RepoGroup')
682 682 repo_to_perm = relationship('UserRepoToPerm', cascade='all', order_by='UserRepoToPerm.repo_to_perm_id')
683 683 users_group_to_perm = relationship('UsersGroupRepoToPerm', cascade='all')
684 684 stats = relationship('Statistics', cascade='all', uselist=False)
685 685
686 686 followers = relationship('UserFollowing',
687 687 primaryjoin='UserFollowing.follows_repo_id==Repository.repo_id',
688 688 cascade='all')
689 689
690 690 logs = relationship('UserLog')
691 691 comments = relationship('ChangesetComment', cascade="all, delete, delete-orphan")
692 692
693 693 pull_requests_org = relationship('PullRequest',
694 694 primaryjoin='PullRequest.org_repo_id==Repository.repo_id',
695 695 cascade="all, delete, delete-orphan")
696 696
697 697 pull_requests_other = relationship('PullRequest',
698 698 primaryjoin='PullRequest.other_repo_id==Repository.repo_id',
699 699 cascade="all, delete, delete-orphan")
700 700
701 701 def __unicode__(self):
702 702 return u"<%s('%s:%s')>" % (self.__class__.__name__, self.repo_id,
703 703 self.repo_name)
704 704
705 705 @hybrid_property
706 706 def locked(self):
707 707 # always should return [user_id, timelocked]
708 708 if self._locked:
709 709 _lock_info = self._locked.split(':')
710 710 return int(_lock_info[0]), _lock_info[1]
711 711 return [None, None]
712 712
713 713 @locked.setter
714 714 def locked(self, val):
715 715 if val and isinstance(val, (list, tuple)):
716 716 self._locked = ':'.join(map(str, val))
717 717 else:
718 718 self._locked = None
719 719
720 720 @hybrid_property
721 721 def changeset_cache(self):
722 722 from rhodecode.lib.vcs.backends.base import EmptyChangeset
723 723 dummy = EmptyChangeset().__json__()
724 724 if not self._changeset_cache:
725 725 return dummy
726 726 try:
727 727 return json.loads(self._changeset_cache)
728 728 except TypeError:
729 729 return dummy
730 730
731 731 @changeset_cache.setter
732 732 def changeset_cache(self, val):
733 733 try:
734 734 self._changeset_cache = json.dumps(val)
735 735 except:
736 736 log.error(traceback.format_exc())
737 737
738 738 @classmethod
739 739 def url_sep(cls):
740 740 return URL_SEP
741 741
742 742 @classmethod
743 743 def normalize_repo_name(cls, repo_name):
744 744 """
745 745 Normalizes os specific repo_name to the format internally stored inside
746 746 dabatabase using URL_SEP
747 747
748 748 :param cls:
749 749 :param repo_name:
750 750 """
751 751 return cls.url_sep().join(repo_name.split(os.sep))
752 752
753 753 @classmethod
754 754 def get_by_repo_name(cls, repo_name):
755 755 q = Session().query(cls).filter(cls.repo_name == repo_name)
756 756 q = q.options(joinedload(Repository.fork))\
757 757 .options(joinedload(Repository.user))\
758 758 .options(joinedload(Repository.group))
759 759 return q.scalar()
760 760
761 761 @classmethod
762 762 def get_by_full_path(cls, repo_full_path):
763 763 repo_name = repo_full_path.split(cls.base_path(), 1)[-1]
764 764 repo_name = cls.normalize_repo_name(repo_name)
765 765 return cls.get_by_repo_name(repo_name.strip(URL_SEP))
766 766
767 767 @classmethod
768 768 def get_repo_forks(cls, repo_id):
769 769 return cls.query().filter(Repository.fork_id == repo_id)
770 770
771 771 @classmethod
772 772 def base_path(cls):
773 773 """
774 774 Returns base path when all repos are stored
775 775
776 776 :param cls:
777 777 """
778 778 q = Session().query(RhodeCodeUi)\
779 779 .filter(RhodeCodeUi.ui_key == cls.url_sep())
780 780 q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
781 781 return q.one().ui_value
782 782
783 783 @property
784 784 def forks(self):
785 785 """
786 786 Return forks of this repo
787 787 """
788 788 return Repository.get_repo_forks(self.repo_id)
789 789
790 790 @property
791 791 def parent(self):
792 792 """
793 793 Returns fork parent
794 794 """
795 795 return self.fork
796 796
797 797 @property
798 798 def just_name(self):
799 799 return self.repo_name.split(Repository.url_sep())[-1]
800 800
801 801 @property
802 802 def groups_with_parents(self):
803 803 groups = []
804 804 if self.group is None:
805 805 return groups
806 806
807 807 cur_gr = self.group
808 808 groups.insert(0, cur_gr)
809 809 while 1:
810 810 gr = getattr(cur_gr, 'parent_group', None)
811 811 cur_gr = cur_gr.parent_group
812 812 if gr is None:
813 813 break
814 814 groups.insert(0, gr)
815 815
816 816 return groups
817 817
818 818 @property
819 819 def groups_and_repo(self):
820 820 return self.groups_with_parents, self.just_name
821 821
822 822 @LazyProperty
823 823 def repo_path(self):
824 824 """
825 825 Returns base full path for that repository means where it actually
826 826 exists on a filesystem
827 827 """
828 828 q = Session().query(RhodeCodeUi).filter(RhodeCodeUi.ui_key ==
829 829 Repository.url_sep())
830 830 q = q.options(FromCache("sql_cache_short", "repository_repo_path"))
831 831 return q.one().ui_value
832 832
833 833 @property
834 834 def repo_full_path(self):
835 835 p = [self.repo_path]
836 836 # we need to split the name by / since this is how we store the
837 837 # names in the database, but that eventually needs to be converted
838 838 # into a valid system path
839 839 p += self.repo_name.split(Repository.url_sep())
840 840 return os.path.join(*p)
841 841
842 842 @property
843 843 def cache_keys(self):
844 844 """
845 845 Returns associated cache keys for that repo
846 846 """
847 847 return CacheInvalidation.query()\
848 848 .filter(CacheInvalidation.cache_args == self.repo_name)\
849 849 .order_by(CacheInvalidation.cache_key)\
850 850 .all()
851 851
852 852 def get_new_name(self, repo_name):
853 853 """
854 854 returns new full repository name based on assigned group and new new
855 855
856 856 :param group_name:
857 857 """
858 858 path_prefix = self.group.full_path_splitted if self.group else []
859 859 return Repository.url_sep().join(path_prefix + [repo_name])
860 860
861 861 @property
862 862 def _ui(self):
863 863 """
864 864 Creates an db based ui object for this repository
865 865 """
866 866 from rhodecode.lib.utils import make_ui
867 867 return make_ui('db', clear_session=False)
868 868
869 869 @classmethod
870 870 def inject_ui(cls, repo, extras={}):
871 871 from rhodecode.lib.vcs.backends.hg import MercurialRepository
872 872 from rhodecode.lib.vcs.backends.git import GitRepository
873 873 required = (MercurialRepository, GitRepository)
874 874 if not isinstance(repo, required):
875 875 raise Exception('repo must be instance of %s' % required)
876 876
877 877 # inject ui extra param to log this action via push logger
878 878 for k, v in extras.items():
879 879 repo._repo.ui.setconfig('rhodecode_extras', k, v)
880 880
881 881 @classmethod
882 882 def is_valid(cls, repo_name):
883 883 """
884 884 returns True if given repo name is a valid filesystem repository
885 885
886 886 :param cls:
887 887 :param repo_name:
888 888 """
889 889 from rhodecode.lib.utils import is_valid_repo
890 890
891 891 return is_valid_repo(repo_name, cls.base_path())
892 892
893 893 def get_api_data(self):
894 894 """
895 895 Common function for generating repo api data
896 896
897 897 """
898 898 repo = self
899 899 data = dict(
900 900 repo_id=repo.repo_id,
901 901 repo_name=repo.repo_name,
902 902 repo_type=repo.repo_type,
903 903 clone_uri=repo.clone_uri,
904 904 private=repo.private,
905 905 created_on=repo.created_on,
906 906 description=repo.description,
907 907 landing_rev=repo.landing_rev,
908 908 owner=repo.user.username,
909 909 fork_of=repo.fork.repo_name if repo.fork else None,
910 910 enable_statistics=repo.enable_statistics,
911 911 enable_locking=repo.enable_locking,
912 912 enable_downloads=repo.enable_downloads
913 913 )
914 914
915 915 return data
916 916
917 917 @classmethod
918 918 def lock(cls, repo, user_id):
919 919 repo.locked = [user_id, time.time()]
920 920 Session().add(repo)
921 921 Session().commit()
922 922
923 923 @classmethod
924 924 def unlock(cls, repo):
925 925 repo.locked = None
926 926 Session().add(repo)
927 927 Session().commit()
928 928
929 929 @property
930 930 def last_db_change(self):
931 931 return self.updated_on
932 932
933 def clone_url(self, **override):
934 from pylons import url
935 from urlparse import urlparse
936 import urllib
937 parsed_url = urlparse(url('home', qualified=True))
938 default_clone_uri = '%(scheme)s://%(user)s%(pass)s%(netloc)s%(prefix)s%(path)s'
939 decoded_path = safe_unicode(urllib.unquote(parsed_url.path))
940 args = {
941 'user': '',
942 'pass': '',
943 'scheme': parsed_url.scheme,
944 'netloc': parsed_url.netloc,
945 'prefix': decoded_path,
946 'path': self.repo_name
947 }
948
949 args.update(override)
950 return default_clone_uri % args
951
933 952 #==========================================================================
934 953 # SCM PROPERTIES
935 954 #==========================================================================
936 955
937 956 def get_changeset(self, rev=None):
938 957 return get_changeset_safe(self.scm_instance, rev)
939 958
940 959 def get_landing_changeset(self):
941 960 """
942 961 Returns landing changeset, or if that doesn't exist returns the tip
943 962 """
944 963 cs = self.get_changeset(self.landing_rev) or self.get_changeset()
945 964 return cs
946 965
947 966 def update_changeset_cache(self, cs_cache=None):
948 967 """
949 968 Update cache of last changeset for repository, keys should be::
950 969
951 970 short_id
952 971 raw_id
953 972 revision
954 973 message
955 974 date
956 975 author
957 976
958 977 :param cs_cache:
959 978 """
960 979 from rhodecode.lib.vcs.backends.base import BaseChangeset
961 980 if cs_cache is None:
962 981 cs_cache = self.get_changeset()
963 982 if isinstance(cs_cache, BaseChangeset):
964 983 cs_cache = cs_cache.__json__()
965 984
966 985 if cs_cache != self.changeset_cache:
967 986 last_change = cs_cache.get('date') or self.last_change
968 987 log.debug('updated repo %s with new cs cache %s' % (self, cs_cache))
969 988 self.updated_on = last_change
970 989 self.changeset_cache = cs_cache
971 990 Session().add(self)
972 991 Session().commit()
973 992
974 993 @property
975 994 def tip(self):
976 995 return self.get_changeset('tip')
977 996
978 997 @property
979 998 def author(self):
980 999 return self.tip.author
981 1000
982 1001 @property
983 1002 def last_change(self):
984 1003 return self.scm_instance.last_change
985 1004
986 1005 def get_comments(self, revisions=None):
987 1006 """
988 1007 Returns comments for this repository grouped by revisions
989 1008
990 1009 :param revisions: filter query by revisions only
991 1010 """
992 1011 cmts = ChangesetComment.query()\
993 1012 .filter(ChangesetComment.repo == self)
994 1013 if revisions:
995 1014 cmts = cmts.filter(ChangesetComment.revision.in_(revisions))
996 1015 grouped = defaultdict(list)
997 1016 for cmt in cmts.all():
998 1017 grouped[cmt.revision].append(cmt)
999 1018 return grouped
1000 1019
1001 1020 def statuses(self, revisions=None):
1002 1021 """
1003 1022 Returns statuses for this repository
1004 1023
1005 1024 :param revisions: list of revisions to get statuses for
1006 1025 :type revisions: list
1007 1026 """
1008 1027
1009 1028 statuses = ChangesetStatus.query()\
1010 1029 .filter(ChangesetStatus.repo == self)\
1011 1030 .filter(ChangesetStatus.version == 0)
1012 1031 if revisions:
1013 1032 statuses = statuses.filter(ChangesetStatus.revision.in_(revisions))
1014 1033 grouped = {}
1015 1034
1016 1035 #maybe we have open new pullrequest without a status ?
1017 1036 stat = ChangesetStatus.STATUS_UNDER_REVIEW
1018 1037 status_lbl = ChangesetStatus.get_status_lbl(stat)
1019 1038 for pr in PullRequest.query().filter(PullRequest.org_repo == self).all():
1020 1039 for rev in pr.revisions:
1021 1040 pr_id = pr.pull_request_id
1022 1041 pr_repo = pr.other_repo.repo_name
1023 1042 grouped[rev] = [stat, status_lbl, pr_id, pr_repo]
1024 1043
1025 1044 for stat in statuses.all():
1026 1045 pr_id = pr_repo = None
1027 1046 if stat.pull_request:
1028 1047 pr_id = stat.pull_request.pull_request_id
1029 1048 pr_repo = stat.pull_request.other_repo.repo_name
1030 1049 grouped[stat.revision] = [str(stat.status), stat.status_lbl,
1031 1050 pr_id, pr_repo]
1032 1051 return grouped
1033 1052
1034 1053 #==========================================================================
1035 1054 # SCM CACHE INSTANCE
1036 1055 #==========================================================================
1037 1056
1038 1057 @property
1039 1058 def invalidate(self):
1040 1059 return CacheInvalidation.invalidate(self.repo_name)
1041 1060
1042 1061 def set_invalidate(self):
1043 1062 """
1044 1063 set a cache for invalidation for this instance
1045 1064 """
1046 1065 CacheInvalidation.set_invalidate(repo_name=self.repo_name)
1047 1066
1048 1067 @LazyProperty
1049 1068 def scm_instance(self):
1050 1069 import rhodecode
1051 1070 full_cache = str2bool(rhodecode.CONFIG.get('vcs_full_cache'))
1052 1071 if full_cache:
1053 1072 return self.scm_instance_cached()
1054 1073 return self.__get_instance()
1055 1074
1056 1075 def scm_instance_cached(self, cache_map=None):
1057 1076 @cache_region('long_term')
1058 1077 def _c(repo_name):
1059 1078 return self.__get_instance()
1060 1079 rn = self.repo_name
1061 1080 log.debug('Getting cached instance of repo')
1062 1081
1063 1082 if cache_map:
1064 1083 # get using prefilled cache_map
1065 1084 invalidate_repo = cache_map[self.repo_name]
1066 1085 if invalidate_repo:
1067 1086 invalidate_repo = (None if invalidate_repo.cache_active
1068 1087 else invalidate_repo)
1069 1088 else:
1070 1089 # get from invalidate
1071 1090 invalidate_repo = self.invalidate
1072 1091
1073 1092 if invalidate_repo is not None:
1074 1093 region_invalidate(_c, None, rn)
1075 1094 # update our cache
1076 1095 CacheInvalidation.set_valid(invalidate_repo.cache_key)
1077 1096 return _c(rn)
1078 1097
1079 1098 def __get_instance(self):
1080 1099 repo_full_path = self.repo_full_path
1081 1100 try:
1082 1101 alias = get_scm(repo_full_path)[0]
1083 1102 log.debug('Creating instance of %s repository' % alias)
1084 1103 backend = get_backend(alias)
1085 1104 except VCSError:
1086 1105 log.error(traceback.format_exc())
1087 1106 log.error('Perhaps this repository is in db and not in '
1088 1107 'filesystem run rescan repositories with '
1089 1108 '"destroy old data " option from admin panel')
1090 1109 return
1091 1110
1092 1111 if alias == 'hg':
1093 1112
1094 1113 repo = backend(safe_str(repo_full_path), create=False,
1095 1114 baseui=self._ui)
1096 1115 # skip hidden web repository
1097 1116 if repo._get_hidden():
1098 1117 return
1099 1118 else:
1100 1119 repo = backend(repo_full_path, create=False)
1101 1120
1102 1121 return repo
1103 1122
1104 1123
1105 1124 class RepoGroup(Base, BaseModel):
1106 1125 __tablename__ = 'groups'
1107 1126 __table_args__ = (
1108 1127 UniqueConstraint('group_name', 'group_parent_id'),
1109 1128 CheckConstraint('group_id != group_parent_id'),
1110 1129 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1111 1130 'mysql_charset': 'utf8'},
1112 1131 )
1113 1132 __mapper_args__ = {'order_by': 'group_name'}
1114 1133
1115 1134 group_id = Column("group_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1116 1135 group_name = Column("group_name", String(255, convert_unicode=False, assert_unicode=None), nullable=False, unique=True, default=None)
1117 1136 group_parent_id = Column("group_parent_id", Integer(), ForeignKey('groups.group_id'), nullable=True, unique=None, default=None)
1118 1137 group_description = Column("group_description", String(10000, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
1119 1138 enable_locking = Column("enable_locking", Boolean(), nullable=False, unique=None, default=False)
1120 1139
1121 1140 repo_group_to_perm = relationship('UserRepoGroupToPerm', cascade='all', order_by='UserRepoGroupToPerm.group_to_perm_id')
1122 1141 users_group_to_perm = relationship('UsersGroupRepoGroupToPerm', cascade='all')
1123 1142
1124 1143 parent_group = relationship('RepoGroup', remote_side=group_id)
1125 1144
1126 1145 def __init__(self, group_name='', parent_group=None):
1127 1146 self.group_name = group_name
1128 1147 self.parent_group = parent_group
1129 1148
1130 1149 def __unicode__(self):
1131 1150 return u"<%s('%s:%s')>" % (self.__class__.__name__, self.group_id,
1132 1151 self.group_name)
1133 1152
1134 1153 @classmethod
1135 1154 def groups_choices(cls, check_perms=False):
1136 1155 from webhelpers.html import literal as _literal
1137 1156 from rhodecode.model.scm import ScmModel
1138 1157 groups = cls.query().all()
1139 1158 if check_perms:
1140 1159 #filter group user have access to, it's done
1141 1160 #magically inside ScmModel based on current user
1142 1161 groups = ScmModel().get_repos_groups(groups)
1143 1162 repo_groups = [('', '')]
1144 1163 sep = ' &raquo; '
1145 1164 _name = lambda k: _literal(sep.join(k))
1146 1165
1147 1166 repo_groups.extend([(x.group_id, _name(x.full_path_splitted))
1148 1167 for x in groups])
1149 1168
1150 1169 repo_groups = sorted(repo_groups, key=lambda t: t[1].split(sep)[0])
1151 1170 return repo_groups
1152 1171
1153 1172 @classmethod
1154 1173 def url_sep(cls):
1155 1174 return URL_SEP
1156 1175
1157 1176 @classmethod
1158 1177 def get_by_group_name(cls, group_name, cache=False, case_insensitive=False):
1159 1178 if case_insensitive:
1160 1179 gr = cls.query()\
1161 1180 .filter(cls.group_name.ilike(group_name))
1162 1181 else:
1163 1182 gr = cls.query()\
1164 1183 .filter(cls.group_name == group_name)
1165 1184 if cache:
1166 1185 gr = gr.options(FromCache(
1167 1186 "sql_cache_short",
1168 1187 "get_group_%s" % _hash_key(group_name)
1169 1188 )
1170 1189 )
1171 1190 return gr.scalar()
1172 1191
1173 1192 @property
1174 1193 def parents(self):
1175 1194 parents_recursion_limit = 5
1176 1195 groups = []
1177 1196 if self.parent_group is None:
1178 1197 return groups
1179 1198 cur_gr = self.parent_group
1180 1199 groups.insert(0, cur_gr)
1181 1200 cnt = 0
1182 1201 while 1:
1183 1202 cnt += 1
1184 1203 gr = getattr(cur_gr, 'parent_group', None)
1185 1204 cur_gr = cur_gr.parent_group
1186 1205 if gr is None:
1187 1206 break
1188 1207 if cnt == parents_recursion_limit:
1189 1208 # this will prevent accidental infinit loops
1190 1209 log.error('group nested more than %s' %
1191 1210 parents_recursion_limit)
1192 1211 break
1193 1212
1194 1213 groups.insert(0, gr)
1195 1214 return groups
1196 1215
1197 1216 @property
1198 1217 def children(self):
1199 1218 return RepoGroup.query().filter(RepoGroup.parent_group == self)
1200 1219
1201 1220 @property
1202 1221 def name(self):
1203 1222 return self.group_name.split(RepoGroup.url_sep())[-1]
1204 1223
1205 1224 @property
1206 1225 def full_path(self):
1207 1226 return self.group_name
1208 1227
1209 1228 @property
1210 1229 def full_path_splitted(self):
1211 1230 return self.group_name.split(RepoGroup.url_sep())
1212 1231
1213 1232 @property
1214 1233 def repositories(self):
1215 1234 return Repository.query()\
1216 1235 .filter(Repository.group == self)\
1217 1236 .order_by(Repository.repo_name)
1218 1237
1219 1238 @property
1220 1239 def repositories_recursive_count(self):
1221 1240 cnt = self.repositories.count()
1222 1241
1223 1242 def children_count(group):
1224 1243 cnt = 0
1225 1244 for child in group.children:
1226 1245 cnt += child.repositories.count()
1227 1246 cnt += children_count(child)
1228 1247 return cnt
1229 1248
1230 1249 return cnt + children_count(self)
1231 1250
1232 1251 def recursive_groups_and_repos(self):
1233 1252 """
1234 1253 Recursive return all groups, with repositories in those groups
1235 1254 """
1236 1255 all_ = []
1237 1256
1238 1257 def _get_members(root_gr):
1239 1258 for r in root_gr.repositories:
1240 1259 all_.append(r)
1241 1260 childs = root_gr.children.all()
1242 1261 if childs:
1243 1262 for gr in childs:
1244 1263 all_.append(gr)
1245 1264 _get_members(gr)
1246 1265
1247 1266 _get_members(self)
1248 1267 return [self] + all_
1249 1268
1250 1269 def get_new_name(self, group_name):
1251 1270 """
1252 1271 returns new full group name based on parent and new name
1253 1272
1254 1273 :param group_name:
1255 1274 """
1256 1275 path_prefix = (self.parent_group.full_path_splitted if
1257 1276 self.parent_group else [])
1258 1277 return RepoGroup.url_sep().join(path_prefix + [group_name])
1259 1278
1260 1279
1261 1280 class Permission(Base, BaseModel):
1262 1281 __tablename__ = 'permissions'
1263 1282 __table_args__ = (
1264 1283 Index('p_perm_name_idx', 'permission_name'),
1265 1284 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1266 1285 'mysql_charset': 'utf8'},
1267 1286 )
1268 1287 PERMS = [
1269 1288 ('repository.none', _('Repository no access')),
1270 1289 ('repository.read', _('Repository read access')),
1271 1290 ('repository.write', _('Repository write access')),
1272 1291 ('repository.admin', _('Repository admin access')),
1273 1292
1274 1293 ('group.none', _('Repositories Group no access')),
1275 1294 ('group.read', _('Repositories Group read access')),
1276 1295 ('group.write', _('Repositories Group write access')),
1277 1296 ('group.admin', _('Repositories Group admin access')),
1278 1297
1279 1298 ('hg.admin', _('RhodeCode Administrator')),
1280 1299 ('hg.create.none', _('Repository creation disabled')),
1281 1300 ('hg.create.repository', _('Repository creation enabled')),
1282 1301 ('hg.fork.none', _('Repository forking disabled')),
1283 1302 ('hg.fork.repository', _('Repository forking enabled')),
1284 1303 ('hg.register.none', _('Register disabled')),
1285 1304 ('hg.register.manual_activate', _('Register new user with RhodeCode '
1286 1305 'with manual activation')),
1287 1306
1288 1307 ('hg.register.auto_activate', _('Register new user with RhodeCode '
1289 1308 'with auto activation')),
1290 1309 ]
1291 1310
1292 1311 # defines which permissions are more important higher the more important
1293 1312 PERM_WEIGHTS = {
1294 1313 'repository.none': 0,
1295 1314 'repository.read': 1,
1296 1315 'repository.write': 3,
1297 1316 'repository.admin': 4,
1298 1317
1299 1318 'group.none': 0,
1300 1319 'group.read': 1,
1301 1320 'group.write': 3,
1302 1321 'group.admin': 4,
1303 1322
1304 1323 'hg.fork.none': 0,
1305 1324 'hg.fork.repository': 1,
1306 1325 'hg.create.none': 0,
1307 1326 'hg.create.repository':1
1308 1327 }
1309 1328
1310 1329 permission_id = Column("permission_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1311 1330 permission_name = Column("permission_name", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
1312 1331 permission_longname = Column("permission_longname", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
1313 1332
1314 1333 def __unicode__(self):
1315 1334 return u"<%s('%s:%s')>" % (
1316 1335 self.__class__.__name__, self.permission_id, self.permission_name
1317 1336 )
1318 1337
1319 1338 @classmethod
1320 1339 def get_by_key(cls, key):
1321 1340 return cls.query().filter(cls.permission_name == key).scalar()
1322 1341
1323 1342 @classmethod
1324 1343 def get_default_perms(cls, default_user_id):
1325 1344 q = Session().query(UserRepoToPerm, Repository, cls)\
1326 1345 .join((Repository, UserRepoToPerm.repository_id == Repository.repo_id))\
1327 1346 .join((cls, UserRepoToPerm.permission_id == cls.permission_id))\
1328 1347 .filter(UserRepoToPerm.user_id == default_user_id)
1329 1348
1330 1349 return q.all()
1331 1350
1332 1351 @classmethod
1333 1352 def get_default_group_perms(cls, default_user_id):
1334 1353 q = Session().query(UserRepoGroupToPerm, RepoGroup, cls)\
1335 1354 .join((RepoGroup, UserRepoGroupToPerm.group_id == RepoGroup.group_id))\
1336 1355 .join((cls, UserRepoGroupToPerm.permission_id == cls.permission_id))\
1337 1356 .filter(UserRepoGroupToPerm.user_id == default_user_id)
1338 1357
1339 1358 return q.all()
1340 1359
1341 1360
1342 1361 class UserRepoToPerm(Base, BaseModel):
1343 1362 __tablename__ = 'repo_to_perm'
1344 1363 __table_args__ = (
1345 1364 UniqueConstraint('user_id', 'repository_id', 'permission_id'),
1346 1365 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1347 1366 'mysql_charset': 'utf8'}
1348 1367 )
1349 1368 repo_to_perm_id = Column("repo_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1350 1369 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
1351 1370 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1352 1371 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
1353 1372
1354 1373 user = relationship('User')
1355 1374 repository = relationship('Repository')
1356 1375 permission = relationship('Permission')
1357 1376
1358 1377 @classmethod
1359 1378 def create(cls, user, repository, permission):
1360 1379 n = cls()
1361 1380 n.user = user
1362 1381 n.repository = repository
1363 1382 n.permission = permission
1364 1383 Session().add(n)
1365 1384 return n
1366 1385
1367 1386 def __unicode__(self):
1368 1387 return u'<user:%s => %s >' % (self.user, self.repository)
1369 1388
1370 1389
1371 1390 class UserToPerm(Base, BaseModel):
1372 1391 __tablename__ = 'user_to_perm'
1373 1392 __table_args__ = (
1374 1393 UniqueConstraint('user_id', 'permission_id'),
1375 1394 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1376 1395 'mysql_charset': 'utf8'}
1377 1396 )
1378 1397 user_to_perm_id = Column("user_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1379 1398 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
1380 1399 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1381 1400
1382 1401 user = relationship('User')
1383 1402 permission = relationship('Permission', lazy='joined')
1384 1403
1385 1404
1386 1405 class UsersGroupRepoToPerm(Base, BaseModel):
1387 1406 __tablename__ = 'users_group_repo_to_perm'
1388 1407 __table_args__ = (
1389 1408 UniqueConstraint('repository_id', 'users_group_id', 'permission_id'),
1390 1409 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1391 1410 'mysql_charset': 'utf8'}
1392 1411 )
1393 1412 users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1394 1413 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
1395 1414 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1396 1415 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=None, default=None)
1397 1416
1398 1417 users_group = relationship('UsersGroup')
1399 1418 permission = relationship('Permission')
1400 1419 repository = relationship('Repository')
1401 1420
1402 1421 @classmethod
1403 1422 def create(cls, users_group, repository, permission):
1404 1423 n = cls()
1405 1424 n.users_group = users_group
1406 1425 n.repository = repository
1407 1426 n.permission = permission
1408 1427 Session().add(n)
1409 1428 return n
1410 1429
1411 1430 def __unicode__(self):
1412 1431 return u'<userGroup:%s => %s >' % (self.users_group, self.repository)
1413 1432
1414 1433
1415 1434 class UsersGroupToPerm(Base, BaseModel):
1416 1435 __tablename__ = 'users_group_to_perm'
1417 1436 __table_args__ = (
1418 1437 UniqueConstraint('users_group_id', 'permission_id',),
1419 1438 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1420 1439 'mysql_charset': 'utf8'}
1421 1440 )
1422 1441 users_group_to_perm_id = Column("users_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1423 1442 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
1424 1443 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1425 1444
1426 1445 users_group = relationship('UsersGroup')
1427 1446 permission = relationship('Permission')
1428 1447
1429 1448
1430 1449 class UserRepoGroupToPerm(Base, BaseModel):
1431 1450 __tablename__ = 'user_repo_group_to_perm'
1432 1451 __table_args__ = (
1433 1452 UniqueConstraint('user_id', 'group_id', 'permission_id'),
1434 1453 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1435 1454 'mysql_charset': 'utf8'}
1436 1455 )
1437 1456
1438 1457 group_to_perm_id = Column("group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1439 1458 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
1440 1459 group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=False, unique=None, default=None)
1441 1460 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1442 1461
1443 1462 user = relationship('User')
1444 1463 group = relationship('RepoGroup')
1445 1464 permission = relationship('Permission')
1446 1465
1447 1466
1448 1467 class UsersGroupRepoGroupToPerm(Base, BaseModel):
1449 1468 __tablename__ = 'users_group_repo_group_to_perm'
1450 1469 __table_args__ = (
1451 1470 UniqueConstraint('users_group_id', 'group_id'),
1452 1471 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1453 1472 'mysql_charset': 'utf8'}
1454 1473 )
1455 1474
1456 1475 users_group_repo_group_to_perm_id = Column("users_group_repo_group_to_perm_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1457 1476 users_group_id = Column("users_group_id", Integer(), ForeignKey('users_groups.users_group_id'), nullable=False, unique=None, default=None)
1458 1477 group_id = Column("group_id", Integer(), ForeignKey('groups.group_id'), nullable=False, unique=None, default=None)
1459 1478 permission_id = Column("permission_id", Integer(), ForeignKey('permissions.permission_id'), nullable=False, unique=None, default=None)
1460 1479
1461 1480 users_group = relationship('UsersGroup')
1462 1481 permission = relationship('Permission')
1463 1482 group = relationship('RepoGroup')
1464 1483
1465 1484
1466 1485 class Statistics(Base, BaseModel):
1467 1486 __tablename__ = 'statistics'
1468 1487 __table_args__ = (
1469 1488 UniqueConstraint('repository_id'),
1470 1489 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1471 1490 'mysql_charset': 'utf8'}
1472 1491 )
1473 1492 stat_id = Column("stat_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1474 1493 repository_id = Column("repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=False, unique=True, default=None)
1475 1494 stat_on_revision = Column("stat_on_revision", Integer(), nullable=False)
1476 1495 commit_activity = Column("commit_activity", LargeBinary(1000000), nullable=False)#JSON data
1477 1496 commit_activity_combined = Column("commit_activity_combined", LargeBinary(), nullable=False)#JSON data
1478 1497 languages = Column("languages", LargeBinary(1000000), nullable=False)#JSON data
1479 1498
1480 1499 repository = relationship('Repository', single_parent=True)
1481 1500
1482 1501
1483 1502 class UserFollowing(Base, BaseModel):
1484 1503 __tablename__ = 'user_followings'
1485 1504 __table_args__ = (
1486 1505 UniqueConstraint('user_id', 'follows_repository_id'),
1487 1506 UniqueConstraint('user_id', 'follows_user_id'),
1488 1507 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1489 1508 'mysql_charset': 'utf8'}
1490 1509 )
1491 1510
1492 1511 user_following_id = Column("user_following_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1493 1512 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None, default=None)
1494 1513 follows_repo_id = Column("follows_repository_id", Integer(), ForeignKey('repositories.repo_id'), nullable=True, unique=None, default=None)
1495 1514 follows_user_id = Column("follows_user_id", Integer(), ForeignKey('users.user_id'), nullable=True, unique=None, default=None)
1496 1515 follows_from = Column('follows_from', DateTime(timezone=False), nullable=True, unique=None, default=datetime.datetime.now)
1497 1516
1498 1517 user = relationship('User', primaryjoin='User.user_id==UserFollowing.user_id')
1499 1518
1500 1519 follows_user = relationship('User', primaryjoin='User.user_id==UserFollowing.follows_user_id')
1501 1520 follows_repository = relationship('Repository', order_by='Repository.repo_name')
1502 1521
1503 1522 @classmethod
1504 1523 def get_repo_followers(cls, repo_id):
1505 1524 return cls.query().filter(cls.follows_repo_id == repo_id)
1506 1525
1507 1526
1508 1527 class CacheInvalidation(Base, BaseModel):
1509 1528 __tablename__ = 'cache_invalidation'
1510 1529 __table_args__ = (
1511 1530 UniqueConstraint('cache_key'),
1512 1531 Index('key_idx', 'cache_key'),
1513 1532 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1514 1533 'mysql_charset': 'utf8'},
1515 1534 )
1516 1535 cache_id = Column("cache_id", Integer(), nullable=False, unique=True, default=None, primary_key=True)
1517 1536 cache_key = Column("cache_key", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
1518 1537 cache_args = Column("cache_args", String(255, convert_unicode=False, assert_unicode=None), nullable=True, unique=None, default=None)
1519 1538 cache_active = Column("cache_active", Boolean(), nullable=True, unique=None, default=False)
1520 1539
1521 1540 def __init__(self, cache_key, cache_args=''):
1522 1541 self.cache_key = cache_key
1523 1542 self.cache_args = cache_args
1524 1543 self.cache_active = False
1525 1544
1526 1545 def __unicode__(self):
1527 1546 return u"<%s('%s:%s')>" % (self.__class__.__name__,
1528 1547 self.cache_id, self.cache_key)
1529 1548
1530 1549 @property
1531 1550 def prefix(self):
1532 1551 _split = self.cache_key.split(self.cache_args, 1)
1533 1552 if _split and len(_split) == 2:
1534 1553 return _split[0]
1535 1554 return ''
1536 1555
1537 1556 @classmethod
1538 1557 def clear_cache(cls):
1539 1558 cls.query().delete()
1540 1559
1541 1560 @classmethod
1542 1561 def _get_key(cls, key):
1543 1562 """
1544 1563 Wrapper for generating a key, together with a prefix
1545 1564
1546 1565 :param key:
1547 1566 """
1548 1567 import rhodecode
1549 1568 prefix = ''
1550 1569 org_key = key
1551 1570 iid = rhodecode.CONFIG.get('instance_id')
1552 1571 if iid:
1553 1572 prefix = iid
1554 1573
1555 1574 return "%s%s" % (prefix, key), prefix, org_key
1556 1575
1557 1576 @classmethod
1558 1577 def get_by_key(cls, key):
1559 1578 return cls.query().filter(cls.cache_key == key).scalar()
1560 1579
1561 1580 @classmethod
1562 1581 def get_by_repo_name(cls, repo_name):
1563 1582 return cls.query().filter(cls.cache_args == repo_name).all()
1564 1583
1565 1584 @classmethod
1566 1585 def _get_or_create_key(cls, key, repo_name, commit=True):
1567 1586 inv_obj = Session().query(cls).filter(cls.cache_key == key).scalar()
1568 1587 if not inv_obj:
1569 1588 try:
1570 1589 inv_obj = CacheInvalidation(key, repo_name)
1571 1590 Session().add(inv_obj)
1572 1591 if commit:
1573 1592 Session().commit()
1574 1593 except Exception:
1575 1594 log.error(traceback.format_exc())
1576 1595 Session().rollback()
1577 1596 return inv_obj
1578 1597
1579 1598 @classmethod
1580 1599 def invalidate(cls, key):
1581 1600 """
1582 1601 Returns Invalidation object if this given key should be invalidated
1583 1602 None otherwise. `cache_active = False` means that this cache
1584 1603 state is not valid and needs to be invalidated
1585 1604
1586 1605 :param key:
1587 1606 """
1588 1607 repo_name = key
1589 1608 repo_name = remove_suffix(repo_name, '_README')
1590 1609 repo_name = remove_suffix(repo_name, '_RSS')
1591 1610 repo_name = remove_suffix(repo_name, '_ATOM')
1592 1611
1593 1612 # adds instance prefix
1594 1613 key, _prefix, _org_key = cls._get_key(key)
1595 1614 inv = cls._get_or_create_key(key, repo_name)
1596 1615
1597 1616 if inv and inv.cache_active is False:
1598 1617 return inv
1599 1618
1600 1619 @classmethod
1601 1620 def set_invalidate(cls, key=None, repo_name=None):
1602 1621 """
1603 1622 Mark this Cache key for invalidation, either by key or whole
1604 1623 cache sets based on repo_name
1605 1624
1606 1625 :param key:
1607 1626 """
1608 1627 if key:
1609 1628 key, _prefix, _org_key = cls._get_key(key)
1610 1629 inv_objs = Session().query(cls).filter(cls.cache_key == key).all()
1611 1630 elif repo_name:
1612 1631 inv_objs = Session().query(cls).filter(cls.cache_args == repo_name).all()
1613 1632
1614 1633 log.debug('marking %s key[s] for invalidation based on key=%s,repo_name=%s'
1615 1634 % (len(inv_objs), key, repo_name))
1616 1635 try:
1617 1636 for inv_obj in inv_objs:
1618 1637 inv_obj.cache_active = False
1619 1638 Session().add(inv_obj)
1620 1639 Session().commit()
1621 1640 except Exception:
1622 1641 log.error(traceback.format_exc())
1623 1642 Session().rollback()
1624 1643
1625 1644 @classmethod
1626 1645 def set_valid(cls, key):
1627 1646 """
1628 1647 Mark this cache key as active and currently cached
1629 1648
1630 1649 :param key:
1631 1650 """
1632 1651 inv_obj = cls.get_by_key(key)
1633 1652 inv_obj.cache_active = True
1634 1653 Session().add(inv_obj)
1635 1654 Session().commit()
1636 1655
1637 1656 @classmethod
1638 1657 def get_cache_map(cls):
1639 1658
1640 1659 class cachemapdict(dict):
1641 1660
1642 1661 def __init__(self, *args, **kwargs):
1643 1662 fixkey = kwargs.get('fixkey')
1644 1663 if fixkey:
1645 1664 del kwargs['fixkey']
1646 1665 self.fixkey = fixkey
1647 1666 super(cachemapdict, self).__init__(*args, **kwargs)
1648 1667
1649 1668 def __getattr__(self, name):
1650 1669 key = name
1651 1670 if self.fixkey:
1652 1671 key, _prefix, _org_key = cls._get_key(key)
1653 1672 if key in self.__dict__:
1654 1673 return self.__dict__[key]
1655 1674 else:
1656 1675 return self[key]
1657 1676
1658 1677 def __getitem__(self, key):
1659 1678 if self.fixkey:
1660 1679 key, _prefix, _org_key = cls._get_key(key)
1661 1680 try:
1662 1681 return super(cachemapdict, self).__getitem__(key)
1663 1682 except KeyError:
1664 1683 return
1665 1684
1666 1685 cache_map = cachemapdict(fixkey=True)
1667 1686 for obj in cls.query().all():
1668 1687 cache_map[obj.cache_key] = cachemapdict(obj.get_dict())
1669 1688 return cache_map
1670 1689
1671 1690
1672 1691 class ChangesetComment(Base, BaseModel):
1673 1692 __tablename__ = 'changeset_comments'
1674 1693 __table_args__ = (
1675 1694 Index('cc_revision_idx', 'revision'),
1676 1695 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1677 1696 'mysql_charset': 'utf8'},
1678 1697 )
1679 1698 comment_id = Column('comment_id', Integer(), nullable=False, primary_key=True)
1680 1699 repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
1681 1700 revision = Column('revision', String(40), nullable=True)
1682 1701 pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=True)
1683 1702 line_no = Column('line_no', Unicode(10), nullable=True)
1684 1703 hl_lines = Column('hl_lines', Unicode(512), nullable=True)
1685 1704 f_path = Column('f_path', Unicode(1000), nullable=True)
1686 1705 user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False)
1687 1706 text = Column('text', UnicodeText(25000), nullable=False)
1688 1707 created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
1689 1708 modified_at = Column('modified_at', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
1690 1709
1691 1710 author = relationship('User', lazy='joined')
1692 1711 repo = relationship('Repository')
1693 1712 status_change = relationship('ChangesetStatus', cascade="all, delete, delete-orphan")
1694 1713 pull_request = relationship('PullRequest', lazy='joined')
1695 1714
1696 1715 @classmethod
1697 1716 def get_users(cls, revision=None, pull_request_id=None):
1698 1717 """
1699 1718 Returns user associated with this ChangesetComment. ie those
1700 1719 who actually commented
1701 1720
1702 1721 :param cls:
1703 1722 :param revision:
1704 1723 """
1705 1724 q = Session().query(User)\
1706 1725 .join(ChangesetComment.author)
1707 1726 if revision:
1708 1727 q = q.filter(cls.revision == revision)
1709 1728 elif pull_request_id:
1710 1729 q = q.filter(cls.pull_request_id == pull_request_id)
1711 1730 return q.all()
1712 1731
1713 1732
1714 1733 class ChangesetStatus(Base, BaseModel):
1715 1734 __tablename__ = 'changeset_statuses'
1716 1735 __table_args__ = (
1717 1736 Index('cs_revision_idx', 'revision'),
1718 1737 Index('cs_version_idx', 'version'),
1719 1738 UniqueConstraint('repo_id', 'revision', 'version'),
1720 1739 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1721 1740 'mysql_charset': 'utf8'}
1722 1741 )
1723 1742 STATUS_NOT_REVIEWED = DEFAULT = 'not_reviewed'
1724 1743 STATUS_APPROVED = 'approved'
1725 1744 STATUS_REJECTED = 'rejected'
1726 1745 STATUS_UNDER_REVIEW = 'under_review'
1727 1746
1728 1747 STATUSES = [
1729 1748 (STATUS_NOT_REVIEWED, _("Not Reviewed")), # (no icon) and default
1730 1749 (STATUS_APPROVED, _("Approved")),
1731 1750 (STATUS_REJECTED, _("Rejected")),
1732 1751 (STATUS_UNDER_REVIEW, _("Under Review")),
1733 1752 ]
1734 1753
1735 1754 changeset_status_id = Column('changeset_status_id', Integer(), nullable=False, primary_key=True)
1736 1755 repo_id = Column('repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
1737 1756 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None)
1738 1757 revision = Column('revision', String(40), nullable=False)
1739 1758 status = Column('status', String(128), nullable=False, default=DEFAULT)
1740 1759 changeset_comment_id = Column('changeset_comment_id', Integer(), ForeignKey('changeset_comments.comment_id'))
1741 1760 modified_at = Column('modified_at', DateTime(), nullable=False, default=datetime.datetime.now)
1742 1761 version = Column('version', Integer(), nullable=False, default=0)
1743 1762 pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=True)
1744 1763
1745 1764 author = relationship('User', lazy='joined')
1746 1765 repo = relationship('Repository')
1747 1766 comment = relationship('ChangesetComment', lazy='joined')
1748 1767 pull_request = relationship('PullRequest', lazy='joined')
1749 1768
1750 1769 def __unicode__(self):
1751 1770 return u"<%s('%s:%s')>" % (
1752 1771 self.__class__.__name__,
1753 1772 self.status, self.author
1754 1773 )
1755 1774
1756 1775 @classmethod
1757 1776 def get_status_lbl(cls, value):
1758 1777 return dict(cls.STATUSES).get(value)
1759 1778
1760 1779 @property
1761 1780 def status_lbl(self):
1762 1781 return ChangesetStatus.get_status_lbl(self.status)
1763 1782
1764 1783
1765 1784 class PullRequest(Base, BaseModel):
1766 1785 __tablename__ = 'pull_requests'
1767 1786 __table_args__ = (
1768 1787 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1769 1788 'mysql_charset': 'utf8'},
1770 1789 )
1771 1790
1772 1791 STATUS_NEW = u'new'
1773 1792 STATUS_OPEN = u'open'
1774 1793 STATUS_CLOSED = u'closed'
1775 1794
1776 1795 pull_request_id = Column('pull_request_id', Integer(), nullable=False, primary_key=True)
1777 1796 title = Column('title', Unicode(256), nullable=True)
1778 1797 description = Column('description', UnicodeText(10240), nullable=True)
1779 1798 status = Column('status', Unicode(256), nullable=False, default=STATUS_NEW)
1780 1799 created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
1781 1800 updated_on = Column('updated_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
1782 1801 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=False, unique=None)
1783 1802 _revisions = Column('revisions', UnicodeText(20500)) # 500 revisions max
1784 1803 org_repo_id = Column('org_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
1785 1804 org_ref = Column('org_ref', Unicode(256), nullable=False)
1786 1805 other_repo_id = Column('other_repo_id', Integer(), ForeignKey('repositories.repo_id'), nullable=False)
1787 1806 other_ref = Column('other_ref', Unicode(256), nullable=False)
1788 1807
1789 1808 @hybrid_property
1790 1809 def revisions(self):
1791 1810 return self._revisions.split(':')
1792 1811
1793 1812 @revisions.setter
1794 1813 def revisions(self, val):
1795 1814 self._revisions = ':'.join(val)
1796 1815
1816 @property
1817 def org_ref_parts(self):
1818 return self.org_ref.split(':')
1819
1820 @property
1821 def other_ref_parts(self):
1822 return self.other_ref.split(':')
1823
1797 1824 author = relationship('User', lazy='joined')
1798 1825 reviewers = relationship('PullRequestReviewers',
1799 1826 cascade="all, delete, delete-orphan")
1800 1827 org_repo = relationship('Repository', primaryjoin='PullRequest.org_repo_id==Repository.repo_id')
1801 1828 other_repo = relationship('Repository', primaryjoin='PullRequest.other_repo_id==Repository.repo_id')
1802 1829 statuses = relationship('ChangesetStatus')
1803 1830 comments = relationship('ChangesetComment',
1804 1831 cascade="all, delete, delete-orphan")
1805 1832
1806 1833 def is_closed(self):
1807 1834 return self.status == self.STATUS_CLOSED
1808 1835
1809 1836 def __json__(self):
1810 1837 return dict(
1811 1838 revisions=self.revisions
1812 1839 )
1813 1840
1814 1841
1815 1842 class PullRequestReviewers(Base, BaseModel):
1816 1843 __tablename__ = 'pull_request_reviewers'
1817 1844 __table_args__ = (
1818 1845 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1819 1846 'mysql_charset': 'utf8'},
1820 1847 )
1821 1848
1822 1849 def __init__(self, user=None, pull_request=None):
1823 1850 self.user = user
1824 1851 self.pull_request = pull_request
1825 1852
1826 1853 pull_requests_reviewers_id = Column('pull_requests_reviewers_id', Integer(), nullable=False, primary_key=True)
1827 1854 pull_request_id = Column("pull_request_id", Integer(), ForeignKey('pull_requests.pull_request_id'), nullable=False)
1828 1855 user_id = Column("user_id", Integer(), ForeignKey('users.user_id'), nullable=True)
1829 1856
1830 1857 user = relationship('User')
1831 1858 pull_request = relationship('PullRequest')
1832 1859
1833 1860
1834 1861 class Notification(Base, BaseModel):
1835 1862 __tablename__ = 'notifications'
1836 1863 __table_args__ = (
1837 1864 Index('notification_type_idx', 'type'),
1838 1865 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1839 1866 'mysql_charset': 'utf8'},
1840 1867 )
1841 1868
1842 1869 TYPE_CHANGESET_COMMENT = u'cs_comment'
1843 1870 TYPE_MESSAGE = u'message'
1844 1871 TYPE_MENTION = u'mention'
1845 1872 TYPE_REGISTRATION = u'registration'
1846 1873 TYPE_PULL_REQUEST = u'pull_request'
1847 1874 TYPE_PULL_REQUEST_COMMENT = u'pull_request_comment'
1848 1875
1849 1876 notification_id = Column('notification_id', Integer(), nullable=False, primary_key=True)
1850 1877 subject = Column('subject', Unicode(512), nullable=True)
1851 1878 body = Column('body', UnicodeText(50000), nullable=True)
1852 1879 created_by = Column("created_by", Integer(), ForeignKey('users.user_id'), nullable=True)
1853 1880 created_on = Column('created_on', DateTime(timezone=False), nullable=False, default=datetime.datetime.now)
1854 1881 type_ = Column('type', Unicode(256))
1855 1882
1856 1883 created_by_user = relationship('User')
1857 1884 notifications_to_users = relationship('UserNotification', lazy='joined',
1858 1885 cascade="all, delete, delete-orphan")
1859 1886
1860 1887 @property
1861 1888 def recipients(self):
1862 1889 return [x.user for x in UserNotification.query()\
1863 1890 .filter(UserNotification.notification == self)\
1864 1891 .order_by(UserNotification.user_id.asc()).all()]
1865 1892
1866 1893 @classmethod
1867 1894 def create(cls, created_by, subject, body, recipients, type_=None):
1868 1895 if type_ is None:
1869 1896 type_ = Notification.TYPE_MESSAGE
1870 1897
1871 1898 notification = cls()
1872 1899 notification.created_by_user = created_by
1873 1900 notification.subject = subject
1874 1901 notification.body = body
1875 1902 notification.type_ = type_
1876 1903 notification.created_on = datetime.datetime.now()
1877 1904
1878 1905 for u in recipients:
1879 1906 assoc = UserNotification()
1880 1907 assoc.notification = notification
1881 1908 u.notifications.append(assoc)
1882 1909 Session().add(notification)
1883 1910 return notification
1884 1911
1885 1912 @property
1886 1913 def description(self):
1887 1914 from rhodecode.model.notification import NotificationModel
1888 1915 return NotificationModel().make_description(self)
1889 1916
1890 1917
1891 1918 class UserNotification(Base, BaseModel):
1892 1919 __tablename__ = 'user_to_notification'
1893 1920 __table_args__ = (
1894 1921 UniqueConstraint('user_id', 'notification_id'),
1895 1922 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1896 1923 'mysql_charset': 'utf8'}
1897 1924 )
1898 1925 user_id = Column('user_id', Integer(), ForeignKey('users.user_id'), primary_key=True)
1899 1926 notification_id = Column("notification_id", Integer(), ForeignKey('notifications.notification_id'), primary_key=True)
1900 1927 read = Column('read', Boolean, default=False)
1901 1928 sent_on = Column('sent_on', DateTime(timezone=False), nullable=True, unique=None)
1902 1929
1903 1930 user = relationship('User', lazy="joined")
1904 1931 notification = relationship('Notification', lazy="joined",
1905 1932 order_by=lambda: Notification.created_on.desc(),)
1906 1933
1907 1934 def mark_as_read(self):
1908 1935 self.read = True
1909 1936 Session().add(self)
1910 1937
1911 1938
1912 1939 class DbMigrateVersion(Base, BaseModel):
1913 1940 __tablename__ = 'db_migrate_version'
1914 1941 __table_args__ = (
1915 1942 {'extend_existing': True, 'mysql_engine': 'InnoDB',
1916 1943 'mysql_charset': 'utf8'},
1917 1944 )
1918 1945 repository_id = Column('repository_id', String(250), primary_key=True)
1919 1946 repository_path = Column('repository_path', Text)
1920 1947 version = Column('version', Integer)
@@ -1,4847 +1,4849 b''
1 1 html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td
2 2 {
3 3 border: 0;
4 4 outline: 0;
5 5 font-size: 100%;
6 6 vertical-align: baseline;
7 7 background: transparent;
8 8 margin: 0;
9 9 padding: 0;
10 10 }
11 11
12 12 body {
13 13 line-height: 1;
14 14 height: 100%;
15 15 background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
16 16 font-family: Lucida Grande, Verdana, Lucida Sans Regular,
17 17 Lucida Sans Unicode, Arial, sans-serif; font-size : 12px;
18 18 color: #000;
19 19 margin: 0;
20 20 padding: 0;
21 21 font-size: 12px;
22 22 }
23 23
24 24 ol,ul {
25 25 list-style: none;
26 26 }
27 27
28 28 blockquote,q {
29 29 quotes: none;
30 30 }
31 31
32 32 blockquote:before,blockquote:after,q:before,q:after {
33 33 content: none;
34 34 }
35 35
36 36 :focus {
37 37 outline: 0;
38 38 }
39 39
40 40 del {
41 41 text-decoration: line-through;
42 42 }
43 43
44 44 table {
45 45 border-collapse: collapse;
46 46 border-spacing: 0;
47 47 }
48 48
49 49 html {
50 50 height: 100%;
51 51 }
52 52
53 53 a {
54 54 color: #003367;
55 55 text-decoration: none;
56 56 cursor: pointer;
57 57 }
58 58
59 59 a:hover {
60 60 color: #316293;
61 61 text-decoration: underline;
62 62 }
63 63
64 64 h1,h2,h3,h4,h5,h6,
65 65 div.h1,div.h2,div.h3,div.h4,div.h5,div.h6 {
66 66 color: #292929;
67 67 font-weight: 700;
68 68 }
69 69
70 70 h1,div.h1 {
71 71 font-size: 22px;
72 72 }
73 73
74 74 h2,div.h2 {
75 75 font-size: 20px;
76 76 }
77 77
78 78 h3,div.h3 {
79 79 font-size: 18px;
80 80 }
81 81
82 82 h4,div.h4 {
83 83 font-size: 16px;
84 84 }
85 85
86 86 h5,div.h5 {
87 87 font-size: 14px;
88 88 }
89 89
90 90 h6,div.h6 {
91 91 font-size: 11px;
92 92 }
93 93
94 94 ul.circle {
95 95 list-style-type: circle;
96 96 }
97 97
98 98 ul.disc {
99 99 list-style-type: disc;
100 100 }
101 101
102 102 ul.square {
103 103 list-style-type: square;
104 104 }
105 105
106 106 ol.lower-roman {
107 107 list-style-type: lower-roman;
108 108 }
109 109
110 110 ol.upper-roman {
111 111 list-style-type: upper-roman;
112 112 }
113 113
114 114 ol.lower-alpha {
115 115 list-style-type: lower-alpha;
116 116 }
117 117
118 118 ol.upper-alpha {
119 119 list-style-type: upper-alpha;
120 120 }
121 121
122 122 ol.decimal {
123 123 list-style-type: decimal;
124 124 }
125 125
126 126 div.color {
127 127 clear: both;
128 128 overflow: hidden;
129 129 position: absolute;
130 130 background: #FFF;
131 131 margin: 7px 0 0 60px;
132 132 padding: 1px 1px 1px 0;
133 133 }
134 134
135 135 div.color a {
136 136 width: 15px;
137 137 height: 15px;
138 138 display: block;
139 139 float: left;
140 140 margin: 0 0 0 1px;
141 141 padding: 0;
142 142 }
143 143
144 144 div.options {
145 145 clear: both;
146 146 overflow: hidden;
147 147 position: absolute;
148 148 background: #FFF;
149 149 margin: 7px 0 0 162px;
150 150 padding: 0;
151 151 }
152 152
153 153 div.options a {
154 154 height: 1%;
155 155 display: block;
156 156 text-decoration: none;
157 157 margin: 0;
158 158 padding: 3px 8px;
159 159 }
160 160
161 161 .top-left-rounded-corner {
162 162 -webkit-border-top-left-radius: 8px;
163 163 -khtml-border-radius-topleft: 8px;
164 164 -moz-border-radius-topleft: 8px;
165 165 border-top-left-radius: 8px;
166 166 }
167 167
168 168 .top-right-rounded-corner {
169 169 -webkit-border-top-right-radius: 8px;
170 170 -khtml-border-radius-topright: 8px;
171 171 -moz-border-radius-topright: 8px;
172 172 border-top-right-radius: 8px;
173 173 }
174 174
175 175 .bottom-left-rounded-corner {
176 176 -webkit-border-bottom-left-radius: 8px;
177 177 -khtml-border-radius-bottomleft: 8px;
178 178 -moz-border-radius-bottomleft: 8px;
179 179 border-bottom-left-radius: 8px;
180 180 }
181 181
182 182 .bottom-right-rounded-corner {
183 183 -webkit-border-bottom-right-radius: 8px;
184 184 -khtml-border-radius-bottomright: 8px;
185 185 -moz-border-radius-bottomright: 8px;
186 186 border-bottom-right-radius: 8px;
187 187 }
188 188
189 189 .top-left-rounded-corner-mid {
190 190 -webkit-border-top-left-radius: 4px;
191 191 -khtml-border-radius-topleft: 4px;
192 192 -moz-border-radius-topleft: 4px;
193 193 border-top-left-radius: 4px;
194 194 }
195 195
196 196 .top-right-rounded-corner-mid {
197 197 -webkit-border-top-right-radius: 4px;
198 198 -khtml-border-radius-topright: 4px;
199 199 -moz-border-radius-topright: 4px;
200 200 border-top-right-radius: 4px;
201 201 }
202 202
203 203 .bottom-left-rounded-corner-mid {
204 204 -webkit-border-bottom-left-radius: 4px;
205 205 -khtml-border-radius-bottomleft: 4px;
206 206 -moz-border-radius-bottomleft: 4px;
207 207 border-bottom-left-radius: 4px;
208 208 }
209 209
210 210 .bottom-right-rounded-corner-mid {
211 211 -webkit-border-bottom-right-radius: 4px;
212 212 -khtml-border-radius-bottomright: 4px;
213 213 -moz-border-radius-bottomright: 4px;
214 214 border-bottom-right-radius: 4px;
215 215 }
216 216
217 217 .help-block {
218 218 color: #999999;
219 219 display: block;
220 220 margin-bottom: 0;
221 221 margin-top: 5px;
222 222 }
223 223
224 224 .empty_data{
225 225 color:#B9B9B9;
226 226 }
227 227
228 228 a.permalink{
229 229 visibility: hidden;
230 230 }
231 231
232 232 a.permalink:hover{
233 233 text-decoration: none;
234 234 }
235 235
236 236 h1:hover > a.permalink,
237 237 h2:hover > a.permalink,
238 238 h3:hover > a.permalink,
239 239 h4:hover > a.permalink,
240 240 h5:hover > a.permalink,
241 241 h6:hover > a.permalink,
242 242 div:hover > a.permalink {
243 243 visibility: visible;
244 244 }
245 245
246 246 #header {
247 247 margin: 0;
248 248 padding: 0 10px;
249 249 }
250 250
251 251 #header ul#logged-user {
252 252 margin-bottom: 5px !important;
253 253 -webkit-border-radius: 0px 0px 8px 8px;
254 254 -khtml-border-radius: 0px 0px 8px 8px;
255 255 -moz-border-radius: 0px 0px 8px 8px;
256 256 border-radius: 0px 0px 8px 8px;
257 257 height: 37px;
258 258 background-color: #003B76;
259 259 background-repeat: repeat-x;
260 260 background-image: -khtml-gradient(linear, left top, left bottom, from(#003B76), to(#00376E) );
261 261 background-image: -moz-linear-gradient(top, #003b76, #00376e);
262 262 background-image: -ms-linear-gradient(top, #003b76, #00376e);
263 263 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), color-stop(100%, #00376e) );
264 264 background-image: -webkit-linear-gradient(top, #003b76, #00376e);
265 265 background-image: -o-linear-gradient(top, #003b76, #00376e);
266 266 background-image: linear-gradient(top, #003b76, #00376e);
267 267 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76',endColorstr='#00376e', GradientType=0 );
268 268 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
269 269 }
270 270
271 271 #header ul#logged-user li {
272 272 list-style: none;
273 273 float: left;
274 274 margin: 8px 0 0;
275 275 padding: 4px 12px;
276 276 border-left: 1px solid #316293;
277 277 }
278 278
279 279 #header ul#logged-user li.first {
280 280 border-left: none;
281 281 margin: 4px;
282 282 }
283 283
284 284 #header ul#logged-user li.first div.gravatar {
285 285 margin-top: -2px;
286 286 }
287 287
288 288 #header ul#logged-user li.first div.account {
289 289 padding-top: 4px;
290 290 float: left;
291 291 }
292 292
293 293 #header ul#logged-user li.last {
294 294 border-right: none;
295 295 }
296 296
297 297 #header ul#logged-user li a {
298 298 color: #fff;
299 299 font-weight: 700;
300 300 text-decoration: none;
301 301 }
302 302
303 303 #header ul#logged-user li a:hover {
304 304 text-decoration: underline;
305 305 }
306 306
307 307 #header ul#logged-user li.highlight a {
308 308 color: #fff;
309 309 }
310 310
311 311 #header ul#logged-user li.highlight a:hover {
312 312 color: #FFF;
313 313 }
314 314
315 315 #header #header-inner {
316 316 min-height: 44px;
317 317 clear: both;
318 318 position: relative;
319 319 background-color: #003B76;
320 320 background-repeat: repeat-x;
321 321 background-image: -khtml-gradient(linear, left top, left bottom, from(#003B76), to(#00376E) );
322 322 background-image: -moz-linear-gradient(top, #003b76, #00376e);
323 323 background-image: -ms-linear-gradient(top, #003b76, #00376e);
324 324 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76),color-stop(100%, #00376e) );
325 325 background-image: -webkit-linear-gradient(top, #003b76, #00376e);
326 326 background-image: -o-linear-gradient(top, #003b76, #00376e);
327 327 background-image: linear-gradient(top, #003b76, #00376e);
328 328 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76',endColorstr='#00376e', GradientType=0 );
329 329 margin: 0;
330 330 padding: 0;
331 331 display: block;
332 332 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
333 333 -webkit-border-radius: 4px 4px 4px 4px;
334 334 -khtml-border-radius: 4px 4px 4px 4px;
335 335 -moz-border-radius: 4px 4px 4px 4px;
336 336 border-radius: 4px 4px 4px 4px;
337 337 }
338 338 #header #header-inner.hover{
339 339 position: fixed !important;
340 340 width: 100% !important;
341 341 margin-left: -10px !important;
342 342 z-index: 10000;
343 343 -webkit-border-radius: 0px 0px 0px 0px;
344 344 -khtml-border-radius: 0px 0px 0px 0px;
345 345 -moz-border-radius: 0px 0px 0px 0px;
346 346 border-radius: 0px 0px 0px 0px;
347 347 }
348 348
349 349 .ie7 #header #header-inner.hover,
350 350 .ie8 #header #header-inner.hover,
351 351 .ie9 #header #header-inner.hover
352 352 {
353 353 z-index: auto !important;
354 354 }
355 355
356 356 .header-pos-fix, .anchor{
357 357 margin-top: -46px;
358 358 padding-top: 46px;
359 359 }
360 360
361 361 #header #header-inner #home a {
362 362 height: 40px;
363 363 width: 46px;
364 364 display: block;
365 365 background: url("../images/button_home.png");
366 366 background-position: 0 0;
367 367 margin: 0;
368 368 padding: 0;
369 369 }
370 370
371 371 #header #header-inner #home a:hover {
372 372 background-position: 0 -40px;
373 373 }
374 374
375 375 #header #header-inner #logo {
376 376 float: left;
377 377 position: absolute;
378 378 }
379 379
380 380 #header #header-inner #logo h1 {
381 381 color: #FFF;
382 382 font-size: 20px;
383 383 margin: 12px 0 0 13px;
384 384 padding: 0;
385 385 }
386 386
387 387 #header #header-inner #logo a {
388 388 color: #fff;
389 389 text-decoration: none;
390 390 }
391 391
392 392 #header #header-inner #logo a:hover {
393 393 color: #bfe3ff;
394 394 }
395 395
396 396 #header #header-inner #quick,#header #header-inner #quick ul {
397 397 position: relative;
398 398 float: right;
399 399 list-style-type: none;
400 400 list-style-position: outside;
401 401 margin: 8px 8px 0 0;
402 402 padding: 0;
403 403 }
404 404
405 405 #header #header-inner #quick li {
406 406 position: relative;
407 407 float: left;
408 408 margin: 0 5px 0 0;
409 409 padding: 0;
410 410 }
411 411
412 412 #header #header-inner #quick li a.menu_link {
413 413 top: 0;
414 414 left: 0;
415 415 height: 1%;
416 416 display: block;
417 417 clear: both;
418 418 overflow: hidden;
419 419 color: #FFF;
420 420 font-weight: 700;
421 421 text-decoration: none;
422 422 background: #369;
423 423 padding: 0;
424 424 -webkit-border-radius: 4px 4px 4px 4px;
425 425 -khtml-border-radius: 4px 4px 4px 4px;
426 426 -moz-border-radius: 4px 4px 4px 4px;
427 427 border-radius: 4px 4px 4px 4px;
428 428 }
429 429
430 430 #header #header-inner #quick li span.short {
431 431 padding: 9px 6px 8px 6px;
432 432 }
433 433
434 434 #header #header-inner #quick li span {
435 435 top: 0;
436 436 right: 0;
437 437 height: 1%;
438 438 display: block;
439 439 float: left;
440 440 border-left: 1px solid #3f6f9f;
441 441 margin: 0;
442 442 padding: 10px 12px 8px 10px;
443 443 }
444 444
445 445 #header #header-inner #quick li span.normal {
446 446 border: none;
447 447 padding: 10px 12px 8px;
448 448 }
449 449
450 450 #header #header-inner #quick li span.icon {
451 451 top: 0;
452 452 left: 0;
453 453 border-left: none;
454 454 border-right: 1px solid #2e5c89;
455 455 padding: 8px 6px 4px;
456 456 }
457 457
458 458 #header #header-inner #quick li span.icon_short {
459 459 top: 0;
460 460 left: 0;
461 461 border-left: none;
462 462 border-right: 1px solid #2e5c89;
463 463 padding: 8px 6px 4px;
464 464 }
465 465
466 466 #header #header-inner #quick li span.icon img,#header #header-inner #quick li span.icon_short img
467 467 {
468 468 margin: 0px -2px 0px 0px;
469 469 }
470 470
471 471 #header #header-inner #quick li a:hover {
472 472 background: #4e4e4e no-repeat top left;
473 473 }
474 474
475 475 #header #header-inner #quick li a:hover span {
476 476 border-left: 1px solid #545454;
477 477 }
478 478
479 479 #header #header-inner #quick li a:hover span.icon,#header #header-inner #quick li a:hover span.icon_short
480 480 {
481 481 border-left: none;
482 482 border-right: 1px solid #464646;
483 483 }
484 484
485 485 #header #header-inner #quick ul {
486 486 top: 29px;
487 487 right: 0;
488 488 min-width: 200px;
489 489 display: none;
490 490 position: absolute;
491 491 background: #FFF;
492 492 border: 1px solid #666;
493 493 border-top: 1px solid #003367;
494 494 z-index: 100;
495 495 margin: 0px 0px 0px 0px;
496 496 padding: 0;
497 497 }
498 498
499 499 #header #header-inner #quick ul.repo_switcher {
500 500 max-height: 275px;
501 501 overflow-x: hidden;
502 502 overflow-y: auto;
503 503 }
504 504
505 505 #header #header-inner #quick ul.repo_switcher li.qfilter_rs {
506 506 float: none;
507 507 margin: 0;
508 508 border-bottom: 2px solid #003367;
509 509 }
510 510
511 511 #header #header-inner #quick .repo_switcher_type {
512 512 position: absolute;
513 513 left: 0;
514 514 top: 9px;
515 515 }
516 516
517 517 #header #header-inner #quick li ul li {
518 518 border-bottom: 1px solid #ddd;
519 519 }
520 520
521 521 #header #header-inner #quick li ul li a {
522 522 width: 182px;
523 523 height: auto;
524 524 display: block;
525 525 float: left;
526 526 background: #FFF;
527 527 color: #003367;
528 528 font-weight: 400;
529 529 margin: 0;
530 530 padding: 7px 9px;
531 531 }
532 532
533 533 #header #header-inner #quick li ul li a:hover {
534 534 color: #000;
535 535 background: #FFF;
536 536 }
537 537
538 538 #header #header-inner #quick ul ul {
539 539 top: auto;
540 540 }
541 541
542 542 #header #header-inner #quick li ul ul {
543 543 right: 200px;
544 544 max-height: 290px;
545 545 overflow: auto;
546 546 overflow-x: hidden;
547 547 white-space: normal;
548 548 }
549 549
550 550 #header #header-inner #quick li ul li a.journal,#header #header-inner #quick li ul li a.journal:hover
551 551 {
552 552 background: url("../images/icons/book.png") no-repeat scroll 4px 9px
553 553 #FFF;
554 554 width: 167px;
555 555 margin: 0;
556 556 padding: 12px 9px 7px 24px;
557 557 }
558 558
559 559 #header #header-inner #quick li ul li a.private_repo,#header #header-inner #quick li ul li a.private_repo:hover
560 560 {
561 561 background: url("../images/icons/lock.png") no-repeat scroll 4px 9px
562 562 #FFF;
563 563 min-width: 167px;
564 564 margin: 0;
565 565 padding: 12px 9px 7px 24px;
566 566 }
567 567
568 568 #header #header-inner #quick li ul li a.public_repo,#header #header-inner #quick li ul li a.public_repo:hover
569 569 {
570 570 background: url("../images/icons/lock_open.png") no-repeat scroll 4px
571 571 9px #FFF;
572 572 min-width: 167px;
573 573 margin: 0;
574 574 padding: 12px 9px 7px 24px;
575 575 }
576 576
577 577 #header #header-inner #quick li ul li a.hg,#header #header-inner #quick li ul li a.hg:hover
578 578 {
579 579 background: url("../images/icons/hgicon.png") no-repeat scroll 4px 9px
580 580 #FFF;
581 581 min-width: 167px;
582 582 margin: 0 0 0 14px;
583 583 padding: 12px 9px 7px 24px;
584 584 }
585 585
586 586 #header #header-inner #quick li ul li a.git,#header #header-inner #quick li ul li a.git:hover
587 587 {
588 588 background: url("../images/icons/giticon.png") no-repeat scroll 4px 9px
589 589 #FFF;
590 590 min-width: 167px;
591 591 margin: 0 0 0 14px;
592 592 padding: 12px 9px 7px 24px;
593 593 }
594 594
595 595 #header #header-inner #quick li ul li a.repos,#header #header-inner #quick li ul li a.repos:hover
596 596 {
597 597 background: url("../images/icons/database_edit.png") no-repeat scroll
598 598 4px 9px #FFF;
599 599 width: 167px;
600 600 margin: 0;
601 601 padding: 12px 9px 7px 24px;
602 602 }
603 603
604 604 #header #header-inner #quick li ul li a.repos_groups,#header #header-inner #quick li ul li a.repos_groups:hover
605 605 {
606 606 background: url("../images/icons/database_link.png") no-repeat scroll
607 607 4px 9px #FFF;
608 608 width: 167px;
609 609 margin: 0;
610 610 padding: 12px 9px 7px 24px;
611 611 }
612 612
613 613 #header #header-inner #quick li ul li a.users,#header #header-inner #quick li ul li a.users:hover
614 614 {
615 615 background: #FFF url("../images/icons/user_edit.png") no-repeat 4px 9px;
616 616 width: 167px;
617 617 margin: 0;
618 618 padding: 12px 9px 7px 24px;
619 619 }
620 620
621 621 #header #header-inner #quick li ul li a.groups,#header #header-inner #quick li ul li a.groups:hover
622 622 {
623 623 background: #FFF url("../images/icons/group_edit.png") no-repeat 4px 9px;
624 624 width: 167px;
625 625 margin: 0;
626 626 padding: 12px 9px 7px 24px;
627 627 }
628 628
629 629 #header #header-inner #quick li ul li a.defaults,#header #header-inner #quick li ul li a.defaults:hover
630 630 {
631 631 background: #FFF url("../images/icons/wrench.png") no-repeat 4px 9px;
632 632 width: 167px;
633 633 margin: 0;
634 634 padding: 12px 9px 7px 24px;
635 635 }
636 636
637 637 #header #header-inner #quick li ul li a.settings,#header #header-inner #quick li ul li a.settings:hover
638 638 {
639 639 background: #FFF url("../images/icons/cog.png") no-repeat 4px 9px;
640 640 width: 167px;
641 641 margin: 0;
642 642 padding: 12px 9px 7px 24px;
643 643 }
644 644
645 645 #header #header-inner #quick li ul li a.permissions,#header #header-inner #quick li ul li a.permissions:hover
646 646 {
647 647 background: #FFF url("../images/icons/key.png") no-repeat 4px 9px;
648 648 width: 167px;
649 649 margin: 0;
650 650 padding: 12px 9px 7px 24px;
651 651 }
652 652
653 653 #header #header-inner #quick li ul li a.ldap,#header #header-inner #quick li ul li a.ldap:hover
654 654 {
655 655 background: #FFF url("../images/icons/server_key.png") no-repeat 4px 9px;
656 656 width: 167px;
657 657 margin: 0;
658 658 padding: 12px 9px 7px 24px;
659 659 }
660 660
661 661 #header #header-inner #quick li ul li a.fork,#header #header-inner #quick li ul li a.fork:hover
662 662 {
663 663 background: #FFF url("../images/icons/arrow_divide.png") no-repeat 4px
664 664 9px;
665 665 width: 167px;
666 666 margin: 0;
667 667 padding: 12px 9px 7px 24px;
668 668 }
669 669
670 670 #header #header-inner #quick li ul li a.locking_add,#header #header-inner #quick li ul li a.locking_add:hover
671 671 {
672 672 background: #FFF url("../images/icons/lock_add.png") no-repeat 4px
673 673 9px;
674 674 width: 167px;
675 675 margin: 0;
676 676 padding: 12px 9px 7px 24px;
677 677 }
678 678
679 679 #header #header-inner #quick li ul li a.locking_del,#header #header-inner #quick li ul li a.locking_del:hover
680 680 {
681 681 background: #FFF url("../images/icons/lock_delete.png") no-repeat 4px
682 682 9px;
683 683 width: 167px;
684 684 margin: 0;
685 685 padding: 12px 9px 7px 24px;
686 686 }
687 687
688 688 #header #header-inner #quick li ul li a.pull_request,#header #header-inner #quick li ul li a.pull_request:hover
689 689 {
690 690 background: #FFF url("../images/icons/arrow_join.png") no-repeat 4px
691 691 9px;
692 692 width: 167px;
693 693 margin: 0;
694 694 padding: 12px 9px 7px 24px;
695 695 }
696 696
697 697 #header #header-inner #quick li ul li a.compare_request,#header #header-inner #quick li ul li a.compare_request:hover
698 698 {
699 699 background: #FFF url("../images/icons/arrow_inout.png") no-repeat 4px
700 700 9px;
701 701 width: 167px;
702 702 margin: 0;
703 703 padding: 12px 9px 7px 24px;
704 704 }
705 705
706 706 #header #header-inner #quick li ul li a.search,#header #header-inner #quick li ul li a.search:hover
707 707 {
708 708 background: #FFF url("../images/icons/search_16.png") no-repeat 4px 9px;
709 709 width: 167px;
710 710 margin: 0;
711 711 padding: 12px 9px 7px 24px;
712 712 }
713 713
714 714 #header #header-inner #quick li ul li a.delete,#header #header-inner #quick li ul li a.delete:hover
715 715 {
716 716 background: #FFF url("../images/icons/delete.png") no-repeat 4px 9px;
717 717 width: 167px;
718 718 margin: 0;
719 719 padding: 12px 9px 7px 24px;
720 720 }
721 721
722 722 #header #header-inner #quick li ul li a.branches,#header #header-inner #quick li ul li a.branches:hover
723 723 {
724 724 background: #FFF url("../images/icons/arrow_branch.png") no-repeat 4px
725 725 9px;
726 726 width: 167px;
727 727 margin: 0;
728 728 padding: 12px 9px 7px 24px;
729 729 }
730 730
731 731 #header #header-inner #quick li ul li a.tags,
732 732 #header #header-inner #quick li ul li a.tags:hover{
733 733 background: #FFF url("../images/icons/tag_blue.png") no-repeat 4px 9px;
734 734 width: 167px;
735 735 margin: 0;
736 736 padding: 12px 9px 7px 24px;
737 737 }
738 738
739 739 #header #header-inner #quick li ul li a.bookmarks,
740 740 #header #header-inner #quick li ul li a.bookmarks:hover{
741 741 background: #FFF url("../images/icons/tag_green.png") no-repeat 4px 9px;
742 742 width: 167px;
743 743 margin: 0;
744 744 padding: 12px 9px 7px 24px;
745 745 }
746 746
747 747 #header #header-inner #quick li ul li a.admin,
748 748 #header #header-inner #quick li ul li a.admin:hover{
749 749 background: #FFF url("../images/icons/cog_edit.png") no-repeat 4px 9px;
750 750 width: 167px;
751 751 margin: 0;
752 752 padding: 12px 9px 7px 24px;
753 753 }
754 754
755 755 .groups_breadcrumbs a {
756 756 color: #fff;
757 757 }
758 758
759 759 .groups_breadcrumbs a:hover {
760 760 color: #bfe3ff;
761 761 text-decoration: none;
762 762 }
763 763
764 764 td.quick_repo_menu {
765 765 background: #FFF url("../images/vertical-indicator.png") 8px 50% no-repeat !important;
766 766 cursor: pointer;
767 767 width: 8px;
768 768 border: 1px solid transparent;
769 769 }
770 770
771 771 td.quick_repo_menu.active {
772 772 background: url("../images/dt-arrow-dn.png") no-repeat scroll 5px 50% #FFFFFF !important;
773 773 border: 1px solid #003367;
774 774 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
775 775 cursor: pointer;
776 776 }
777 777
778 778 td.quick_repo_menu .menu_items {
779 779 margin-top: 10px;
780 780 margin-left:-6px;
781 781 width: 150px;
782 782 position: absolute;
783 783 background-color: #FFF;
784 784 background: none repeat scroll 0 0 #FFFFFF;
785 785 border-color: #003367 #666666 #666666;
786 786 border-right: 1px solid #666666;
787 787 border-style: solid;
788 788 border-width: 1px;
789 789 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
790 790 border-top-style: none;
791 791 }
792 792
793 793 td.quick_repo_menu .menu_items li {
794 794 padding: 0 !important;
795 795 }
796 796
797 797 td.quick_repo_menu .menu_items a {
798 798 display: block;
799 799 padding: 4px 12px 4px 8px;
800 800 }
801 801
802 802 td.quick_repo_menu .menu_items a:hover {
803 803 background-color: #EEE;
804 804 text-decoration: none;
805 805 }
806 806
807 807 td.quick_repo_menu .menu_items .icon img {
808 808 margin-bottom: -2px;
809 809 }
810 810
811 811 td.quick_repo_menu .menu_items.hidden {
812 812 display: none;
813 813 }
814 814
815 815 .yui-dt-first th {
816 816 text-align: left;
817 817 }
818 818
819 819 /*
820 820 Copyright (c) 2011, Yahoo! Inc. All rights reserved.
821 821 Code licensed under the BSD License:
822 822 http://developer.yahoo.com/yui/license.html
823 823 version: 2.9.0
824 824 */
825 825 .yui-skin-sam .yui-dt-mask {
826 826 position: absolute;
827 827 z-index: 9500;
828 828 }
829 829 .yui-dt-tmp {
830 830 position: absolute;
831 831 left: -9000px;
832 832 }
833 833 .yui-dt-scrollable .yui-dt-bd { overflow: auto }
834 834 .yui-dt-scrollable .yui-dt-hd {
835 835 overflow: hidden;
836 836 position: relative;
837 837 }
838 838 .yui-dt-scrollable .yui-dt-bd thead tr,
839 839 .yui-dt-scrollable .yui-dt-bd thead th {
840 840 position: absolute;
841 841 left: -1500px;
842 842 }
843 843 .yui-dt-scrollable tbody { -moz-outline: 0 }
844 844 .yui-skin-sam thead .yui-dt-sortable { cursor: pointer }
845 845 .yui-skin-sam thead .yui-dt-draggable { cursor: move }
846 846 .yui-dt-coltarget {
847 847 position: absolute;
848 848 z-index: 999;
849 849 }
850 850 .yui-dt-hd { zoom: 1 }
851 851 th.yui-dt-resizeable .yui-dt-resizerliner { position: relative }
852 852 .yui-dt-resizer {
853 853 position: absolute;
854 854 right: 0;
855 855 bottom: 0;
856 856 height: 100%;
857 857 cursor: e-resize;
858 858 cursor: col-resize;
859 859 background-color: #CCC;
860 860 opacity: 0;
861 861 filter: alpha(opacity=0);
862 862 }
863 863 .yui-dt-resizerproxy {
864 864 visibility: hidden;
865 865 position: absolute;
866 866 z-index: 9000;
867 867 background-color: #CCC;
868 868 opacity: 0;
869 869 filter: alpha(opacity=0);
870 870 }
871 871 th.yui-dt-hidden .yui-dt-liner,
872 872 td.yui-dt-hidden .yui-dt-liner,
873 873 th.yui-dt-hidden .yui-dt-resizer { display: none }
874 874 .yui-dt-editor,
875 875 .yui-dt-editor-shim {
876 876 position: absolute;
877 877 z-index: 9000;
878 878 }
879 879 .yui-skin-sam .yui-dt table {
880 880 margin: 0;
881 881 padding: 0;
882 882 font-family: arial;
883 883 font-size: inherit;
884 884 border-collapse: separate;
885 885 *border-collapse: collapse;
886 886 border-spacing: 0;
887 887 border: 1px solid #7f7f7f;
888 888 }
889 889 .yui-skin-sam .yui-dt thead { border-spacing: 0 }
890 890 .yui-skin-sam .yui-dt caption {
891 891 color: #000;
892 892 font-size: 85%;
893 893 font-weight: normal;
894 894 font-style: italic;
895 895 line-height: 1;
896 896 padding: 1em 0;
897 897 text-align: center;
898 898 }
899 899 .yui-skin-sam .yui-dt th { background: #d8d8da url(../images/sprite.png) repeat-x 0 0 }
900 900 .yui-skin-sam .yui-dt th,
901 901 .yui-skin-sam .yui-dt th a {
902 902 font-weight: normal;
903 903 text-decoration: none;
904 904 color: #000;
905 905 vertical-align: bottom;
906 906 }
907 907 .yui-skin-sam .yui-dt th {
908 908 margin: 0;
909 909 padding: 0;
910 910 border: 0;
911 911 border-right: 1px solid #cbcbcb;
912 912 }
913 913 .yui-skin-sam .yui-dt tr.yui-dt-first td { border-top: 1px solid #7f7f7f }
914 914 .yui-skin-sam .yui-dt th .yui-dt-liner { white-space: nowrap }
915 915 .yui-skin-sam .yui-dt-liner {
916 916 margin: 0;
917 917 padding: 0;
918 918 }
919 919 .yui-skin-sam .yui-dt-coltarget {
920 920 width: 5px;
921 921 background-color: red;
922 922 }
923 923 .yui-skin-sam .yui-dt td {
924 924 margin: 0;
925 925 padding: 0;
926 926 border: 0;
927 927 border-right: 1px solid #cbcbcb;
928 928 text-align: left;
929 929 }
930 930 .yui-skin-sam .yui-dt-list td { border-right: 0 }
931 931 .yui-skin-sam .yui-dt-resizer { width: 6px }
932 932 .yui-skin-sam .yui-dt-mask {
933 933 background-color: #000;
934 934 opacity: .25;
935 935 filter: alpha(opacity=25);
936 936 }
937 937 .yui-skin-sam .yui-dt-message { background-color: #FFF }
938 938 .yui-skin-sam .yui-dt-scrollable table { border: 0 }
939 939 .yui-skin-sam .yui-dt-scrollable .yui-dt-hd {
940 940 border-left: 1px solid #7f7f7f;
941 941 border-top: 1px solid #7f7f7f;
942 942 border-right: 1px solid #7f7f7f;
943 943 }
944 944 .yui-skin-sam .yui-dt-scrollable .yui-dt-bd {
945 945 border-left: 1px solid #7f7f7f;
946 946 border-bottom: 1px solid #7f7f7f;
947 947 border-right: 1px solid #7f7f7f;
948 948 background-color: #FFF;
949 949 }
950 950 .yui-skin-sam .yui-dt-scrollable .yui-dt-data tr.yui-dt-last td { border-bottom: 1px solid #7f7f7f }
951 951 .yui-skin-sam th.yui-dt-asc,
952 952 .yui-skin-sam th.yui-dt-desc { background: url(../images/sprite.png) repeat-x 0 -100px }
953 953 .yui-skin-sam th.yui-dt-sortable .yui-dt-label { margin-right: 10px }
954 954 .yui-skin-sam th.yui-dt-asc .yui-dt-liner { background: url(../images/dt-arrow-up.png) no-repeat right }
955 955 .yui-skin-sam th.yui-dt-desc .yui-dt-liner { background: url(../images/dt-arrow-dn.png) no-repeat right }
956 956 tbody .yui-dt-editable { cursor: pointer }
957 957 .yui-dt-editor {
958 958 text-align: left;
959 959 background-color: #f2f2f2;
960 960 border: 1px solid #808080;
961 961 padding: 6px;
962 962 }
963 963 .yui-dt-editor label {
964 964 padding-left: 4px;
965 965 padding-right: 6px;
966 966 }
967 967 .yui-dt-editor .yui-dt-button {
968 968 padding-top: 6px;
969 969 text-align: right;
970 970 }
971 971 .yui-dt-editor .yui-dt-button button {
972 972 background: url(../images/sprite.png) repeat-x 0 0;
973 973 border: 1px solid #999;
974 974 width: 4em;
975 975 height: 1.8em;
976 976 margin-left: 6px;
977 977 }
978 978 .yui-dt-editor .yui-dt-button button.yui-dt-default {
979 979 background: url(../images/sprite.png) repeat-x 0 -1400px;
980 980 background-color: #5584e0;
981 981 border: 1px solid #304369;
982 982 color: #FFF;
983 983 }
984 984 .yui-dt-editor .yui-dt-button button:hover {
985 985 background: url(../images/sprite.png) repeat-x 0 -1300px;
986 986 color: #000;
987 987 }
988 988 .yui-dt-editor .yui-dt-button button:active {
989 989 background: url(../images/sprite.png) repeat-x 0 -1700px;
990 990 color: #000;
991 991 }
992 992 .yui-skin-sam tr.yui-dt-even { background-color: #FFF }
993 993 .yui-skin-sam tr.yui-dt-odd { background-color: #edf5ff }
994 994 .yui-skin-sam tr.yui-dt-even td.yui-dt-asc,
995 995 .yui-skin-sam tr.yui-dt-even td.yui-dt-desc { background-color: #edf5ff }
996 996 .yui-skin-sam tr.yui-dt-odd td.yui-dt-asc,
997 997 .yui-skin-sam tr.yui-dt-odd td.yui-dt-desc { background-color: #dbeaff }
998 998 .yui-skin-sam .yui-dt-list tr.yui-dt-even { background-color: #FFF }
999 999 .yui-skin-sam .yui-dt-list tr.yui-dt-odd { background-color: #FFF }
1000 1000 .yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-asc,
1001 1001 .yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-desc { background-color: #edf5ff }
1002 1002 .yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-asc,
1003 1003 .yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-desc { background-color: #edf5ff }
1004 1004 .yui-skin-sam th.yui-dt-highlighted,
1005 1005 .yui-skin-sam th.yui-dt-highlighted a { background-color: #b2d2ff }
1006 1006 .yui-skin-sam tr.yui-dt-highlighted,
1007 1007 .yui-skin-sam tr.yui-dt-highlighted td.yui-dt-asc,
1008 1008 .yui-skin-sam tr.yui-dt-highlighted td.yui-dt-desc,
1009 1009 .yui-skin-sam tr.yui-dt-even td.yui-dt-highlighted,
1010 1010 .yui-skin-sam tr.yui-dt-odd td.yui-dt-highlighted {
1011 1011 cursor: pointer;
1012 1012 background-color: #b2d2ff;
1013 1013 }
1014 1014 .yui-skin-sam .yui-dt-list th.yui-dt-highlighted,
1015 1015 .yui-skin-sam .yui-dt-list th.yui-dt-highlighted a { background-color: #b2d2ff }
1016 1016 .yui-skin-sam .yui-dt-list tr.yui-dt-highlighted,
1017 1017 .yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-asc,
1018 1018 .yui-skin-sam .yui-dt-list tr.yui-dt-highlighted td.yui-dt-desc,
1019 1019 .yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-highlighted,
1020 1020 .yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-highlighted {
1021 1021 cursor: pointer;
1022 1022 background-color: #b2d2ff;
1023 1023 }
1024 1024 .yui-skin-sam th.yui-dt-selected,
1025 1025 .yui-skin-sam th.yui-dt-selected a { background-color: #446cd7 }
1026 1026 .yui-skin-sam tr.yui-dt-selected td,
1027 1027 .yui-skin-sam tr.yui-dt-selected td.yui-dt-asc,
1028 1028 .yui-skin-sam tr.yui-dt-selected td.yui-dt-desc {
1029 1029 background-color: #426fd9;
1030 1030 color: #FFF;
1031 1031 }
1032 1032 .yui-skin-sam tr.yui-dt-even td.yui-dt-selected,
1033 1033 .yui-skin-sam tr.yui-dt-odd td.yui-dt-selected {
1034 1034 background-color: #446cd7;
1035 1035 color: #FFF;
1036 1036 }
1037 1037 .yui-skin-sam .yui-dt-list th.yui-dt-selected,
1038 1038 .yui-skin-sam .yui-dt-list th.yui-dt-selected a { background-color: #446cd7 }
1039 1039 .yui-skin-sam .yui-dt-list tr.yui-dt-selected td,
1040 1040 .yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-asc,
1041 1041 .yui-skin-sam .yui-dt-list tr.yui-dt-selected td.yui-dt-desc {
1042 1042 background-color: #426fd9;
1043 1043 color: #FFF;
1044 1044 }
1045 1045 .yui-skin-sam .yui-dt-list tr.yui-dt-even td.yui-dt-selected,
1046 1046 .yui-skin-sam .yui-dt-list tr.yui-dt-odd td.yui-dt-selected {
1047 1047 background-color: #446cd7;
1048 1048 color: #FFF;
1049 1049 }
1050 1050 .yui-skin-sam .yui-dt-paginator {
1051 1051 display: block;
1052 1052 margin: 6px 0;
1053 1053 white-space: nowrap;
1054 1054 }
1055 1055 .yui-skin-sam .yui-dt-paginator .yui-dt-first,
1056 1056 .yui-skin-sam .yui-dt-paginator .yui-dt-last,
1057 1057 .yui-skin-sam .yui-dt-paginator .yui-dt-selected { padding: 2px 6px }
1058 1058 .yui-skin-sam .yui-dt-paginator a.yui-dt-first,
1059 1059 .yui-skin-sam .yui-dt-paginator a.yui-dt-last { text-decoration: none }
1060 1060 .yui-skin-sam .yui-dt-paginator .yui-dt-previous,
1061 1061 .yui-skin-sam .yui-dt-paginator .yui-dt-next { display: none }
1062 1062 .yui-skin-sam a.yui-dt-page {
1063 1063 border: 1px solid #cbcbcb;
1064 1064 padding: 2px 6px;
1065 1065 text-decoration: none;
1066 1066 background-color: #fff;
1067 1067 }
1068 1068 .yui-skin-sam .yui-dt-selected {
1069 1069 border: 1px solid #fff;
1070 1070 background-color: #fff;
1071 1071 }
1072 1072
1073 1073 #content #left {
1074 1074 left: 0;
1075 1075 width: 280px;
1076 1076 position: absolute;
1077 1077 }
1078 1078
1079 1079 #content #right {
1080 1080 margin: 0 60px 10px 290px;
1081 1081 }
1082 1082
1083 1083 #content div.box {
1084 1084 clear: both;
1085 1085 overflow: hidden;
1086 1086 background: #fff;
1087 1087 margin: 0 0 10px;
1088 1088 padding: 0 0 10px;
1089 1089 -webkit-border-radius: 4px 4px 4px 4px;
1090 1090 -khtml-border-radius: 4px 4px 4px 4px;
1091 1091 -moz-border-radius: 4px 4px 4px 4px;
1092 1092 border-radius: 4px 4px 4px 4px;
1093 1093 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
1094 1094 }
1095 1095
1096 1096 #content div.box-left {
1097 1097 width: 49%;
1098 1098 clear: none;
1099 1099 float: left;
1100 1100 margin: 0 0 10px;
1101 1101 }
1102 1102
1103 1103 #content div.box-right {
1104 1104 width: 49%;
1105 1105 clear: none;
1106 1106 float: right;
1107 1107 margin: 0 0 10px;
1108 1108 }
1109 1109
1110 1110 #content div.box div.title {
1111 1111 clear: both;
1112 1112 overflow: hidden;
1113 1113 background-color: #003B76;
1114 1114 background-repeat: repeat-x;
1115 1115 background-image: -khtml-gradient(linear, left top, left bottom, from(#003B76), to(#00376E) );
1116 1116 background-image: -moz-linear-gradient(top, #003b76, #00376e);
1117 1117 background-image: -ms-linear-gradient(top, #003b76, #00376e);
1118 1118 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), color-stop(100%, #00376e) );
1119 1119 background-image: -webkit-linear-gradient(top, #003b76, #00376e);
1120 1120 background-image: -o-linear-gradient(top, #003b76, #00376e);
1121 1121 background-image: linear-gradient(top, #003b76, #00376e);
1122 1122 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', endColorstr='#00376e', GradientType=0 );
1123 1123 margin: 0 0 20px;
1124 1124 padding: 0;
1125 1125 }
1126 1126
1127 1127 #content div.box div.title h5 {
1128 1128 float: left;
1129 1129 border: none;
1130 1130 color: #fff;
1131 1131 text-transform: uppercase;
1132 1132 margin: 0;
1133 1133 padding: 11px 0 11px 10px;
1134 1134 }
1135 1135
1136 1136 #content div.box div.title .link-white{
1137 1137 color: #FFFFFF;
1138 1138 }
1139 1139
1140 1140 #content div.box div.title .link-white.current{
1141 1141 color: #BFE3FF;
1142 1142 }
1143 1143
1144 1144 #content div.box div.title ul.links li {
1145 1145 list-style: none;
1146 1146 float: left;
1147 1147 margin: 0;
1148 1148 padding: 0;
1149 1149 }
1150 1150
1151 1151 #content div.box div.title ul.links li a {
1152 1152 border-left: 1px solid #316293;
1153 1153 color: #FFFFFF;
1154 1154 display: block;
1155 1155 float: left;
1156 1156 font-size: 13px;
1157 1157 font-weight: 700;
1158 1158 height: 1%;
1159 1159 margin: 0;
1160 1160 padding: 11px 22px 12px;
1161 1161 text-decoration: none;
1162 1162 }
1163 1163
1164 1164 #content div.box h1,#content div.box h2,#content div.box h3,#content div.box h4,#content div.box h5,#content div.box h6,
1165 1165 #content div.box div.h1,#content div.box div.h2,#content div.box div.h3,#content div.box div.h4,#content div.box div.h5,#content div.box div.h6
1166 1166
1167 1167 {
1168 1168 clear: both;
1169 1169 overflow: hidden;
1170 1170 border-bottom: 1px solid #DDD;
1171 1171 margin: 10px 20px;
1172 1172 padding: 0 0 15px;
1173 1173 }
1174 1174
1175 1175 #content div.box p {
1176 1176 color: #5f5f5f;
1177 1177 font-size: 12px;
1178 1178 line-height: 150%;
1179 1179 margin: 0 24px 10px;
1180 1180 padding: 0;
1181 1181 }
1182 1182
1183 1183 #content div.box blockquote {
1184 1184 border-left: 4px solid #DDD;
1185 1185 color: #5f5f5f;
1186 1186 font-size: 11px;
1187 1187 line-height: 150%;
1188 1188 margin: 0 34px;
1189 1189 padding: 0 0 0 14px;
1190 1190 }
1191 1191
1192 1192 #content div.box blockquote p {
1193 1193 margin: 10px 0;
1194 1194 padding: 0;
1195 1195 }
1196 1196
1197 1197 #content div.box dl {
1198 1198 margin: 10px 0px;
1199 1199 }
1200 1200
1201 1201 #content div.box dt {
1202 1202 font-size: 12px;
1203 1203 margin: 0;
1204 1204 }
1205 1205
1206 1206 #content div.box dd {
1207 1207 font-size: 12px;
1208 1208 margin: 0;
1209 1209 padding: 8px 0 8px 15px;
1210 1210 }
1211 1211
1212 1212 #content div.box li {
1213 1213 font-size: 12px;
1214 1214 padding: 4px 0;
1215 1215 }
1216 1216
1217 1217 #content div.box ul.disc,#content div.box ul.circle {
1218 1218 margin: 10px 24px 10px 38px;
1219 1219 }
1220 1220
1221 1221 #content div.box ul.square {
1222 1222 margin: 10px 24px 10px 40px;
1223 1223 }
1224 1224
1225 1225 #content div.box img.left {
1226 1226 border: none;
1227 1227 float: left;
1228 1228 margin: 10px 10px 10px 0;
1229 1229 }
1230 1230
1231 1231 #content div.box img.right {
1232 1232 border: none;
1233 1233 float: right;
1234 1234 margin: 10px 0 10px 10px;
1235 1235 }
1236 1236
1237 1237 #content div.box div.messages {
1238 1238 clear: both;
1239 1239 overflow: hidden;
1240 1240 margin: 0 20px;
1241 1241 padding: 0;
1242 1242 }
1243 1243
1244 1244 #content div.box div.message {
1245 1245 clear: both;
1246 1246 overflow: hidden;
1247 1247 margin: 0;
1248 1248 padding: 5px 0;
1249 1249 white-space: pre-wrap;
1250 1250 }
1251 1251 #content div.box div.expand {
1252 1252 width: 110%;
1253 1253 height:14px;
1254 1254 font-size:10px;
1255 1255 text-align:center;
1256 1256 cursor: pointer;
1257 1257 color:#666;
1258 1258
1259 1259 background:-webkit-gradient(linear,0% 50%,100% 50%,color-stop(0%,rgba(255,255,255,0)),color-stop(100%,rgba(64,96,128,0.1)));
1260 1260 background:-webkit-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
1261 1261 background:-moz-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
1262 1262 background:-o-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
1263 1263 background:-ms-linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
1264 1264 background:linear-gradient(top,rgba(255,255,255,0),rgba(64,96,128,0.1));
1265 1265
1266 1266 display: none;
1267 1267 }
1268 1268 #content div.box div.expand .expandtext {
1269 1269 background-color: #ffffff;
1270 1270 padding: 2px;
1271 1271 border-radius: 2px;
1272 1272 }
1273 1273
1274 1274 #content div.box div.message a {
1275 1275 font-weight: 400 !important;
1276 1276 }
1277 1277
1278 1278 #content div.box div.message div.image {
1279 1279 float: left;
1280 1280 margin: 9px 0 0 5px;
1281 1281 padding: 6px;
1282 1282 }
1283 1283
1284 1284 #content div.box div.message div.image img {
1285 1285 vertical-align: middle;
1286 1286 margin: 0;
1287 1287 }
1288 1288
1289 1289 #content div.box div.message div.text {
1290 1290 float: left;
1291 1291 margin: 0;
1292 1292 padding: 9px 6px;
1293 1293 }
1294 1294
1295 1295 #content div.box div.message div.dismiss a {
1296 1296 height: 16px;
1297 1297 width: 16px;
1298 1298 display: block;
1299 1299 background: url("../images/icons/cross.png") no-repeat;
1300 1300 margin: 15px 14px 0 0;
1301 1301 padding: 0;
1302 1302 }
1303 1303
1304 1304 #content div.box div.message div.text h1,#content div.box div.message div.text h2,#content div.box div.message div.text h3,#content div.box div.message div.text h4,#content div.box div.message div.text h5,#content div.box div.message div.text h6
1305 1305 {
1306 1306 border: none;
1307 1307 margin: 0;
1308 1308 padding: 0;
1309 1309 }
1310 1310
1311 1311 #content div.box div.message div.text span {
1312 1312 height: 1%;
1313 1313 display: block;
1314 1314 margin: 0;
1315 1315 padding: 5px 0 0;
1316 1316 }
1317 1317
1318 1318 #content div.box div.message-error {
1319 1319 height: 1%;
1320 1320 clear: both;
1321 1321 overflow: hidden;
1322 1322 background: #FBE3E4;
1323 1323 border: 1px solid #FBC2C4;
1324 1324 color: #860006;
1325 1325 }
1326 1326
1327 1327 #content div.box div.message-error h6 {
1328 1328 color: #860006;
1329 1329 }
1330 1330
1331 1331 #content div.box div.message-warning {
1332 1332 height: 1%;
1333 1333 clear: both;
1334 1334 overflow: hidden;
1335 1335 background: #FFF6BF;
1336 1336 border: 1px solid #FFD324;
1337 1337 color: #5f5200;
1338 1338 }
1339 1339
1340 1340 #content div.box div.message-warning h6 {
1341 1341 color: #5f5200;
1342 1342 }
1343 1343
1344 1344 #content div.box div.message-notice {
1345 1345 height: 1%;
1346 1346 clear: both;
1347 1347 overflow: hidden;
1348 1348 background: #8FBDE0;
1349 1349 border: 1px solid #6BACDE;
1350 1350 color: #003863;
1351 1351 }
1352 1352
1353 1353 #content div.box div.message-notice h6 {
1354 1354 color: #003863;
1355 1355 }
1356 1356
1357 1357 #content div.box div.message-success {
1358 1358 height: 1%;
1359 1359 clear: both;
1360 1360 overflow: hidden;
1361 1361 background: #E6EFC2;
1362 1362 border: 1px solid #C6D880;
1363 1363 color: #4e6100;
1364 1364 }
1365 1365
1366 1366 #content div.box div.message-success h6 {
1367 1367 color: #4e6100;
1368 1368 }
1369 1369
1370 1370 #content div.box div.form div.fields div.field {
1371 1371 height: 1%;
1372 1372 border-bottom: 1px solid #DDD;
1373 1373 clear: both;
1374 1374 margin: 0;
1375 1375 padding: 10px 0;
1376 1376 }
1377 1377
1378 1378 #content div.box div.form div.fields div.field-first {
1379 1379 padding: 0 0 10px;
1380 1380 }
1381 1381
1382 1382 #content div.box div.form div.fields div.field-noborder {
1383 1383 border-bottom: 0 !important;
1384 1384 }
1385 1385
1386 1386 #content div.box div.form div.fields div.field span.error-message {
1387 1387 height: 1%;
1388 1388 display: inline-block;
1389 1389 color: red;
1390 1390 margin: 8px 0 0 4px;
1391 1391 padding: 0;
1392 1392 }
1393 1393
1394 1394 #content div.box div.form div.fields div.field span.success {
1395 1395 height: 1%;
1396 1396 display: block;
1397 1397 color: #316309;
1398 1398 margin: 8px 0 0;
1399 1399 padding: 0;
1400 1400 }
1401 1401
1402 1402 #content div.box div.form div.fields div.field div.label {
1403 1403 left: 70px;
1404 1404 width: 155px;
1405 1405 position: absolute;
1406 1406 margin: 0;
1407 1407 padding: 5px 0 0 0px;
1408 1408 }
1409 1409
1410 1410 #content div.box div.form div.fields div.field div.label-summary {
1411 1411 left: 30px;
1412 1412 width: 155px;
1413 1413 position: absolute;
1414 1414 margin: 0;
1415 1415 padding: 0px 0 0 0px;
1416 1416 }
1417 1417
1418 1418 #content div.box-left div.form div.fields div.field div.label,
1419 1419 #content div.box-right div.form div.fields div.field div.label,
1420 1420 #content div.box-left div.form div.fields div.field div.label,
1421 1421 #content div.box-left div.form div.fields div.field div.label-summary,
1422 1422 #content div.box-right div.form div.fields div.field div.label-summary,
1423 1423 #content div.box-left div.form div.fields div.field div.label-summary
1424 1424 {
1425 1425 clear: both;
1426 1426 overflow: hidden;
1427 1427 left: 0;
1428 1428 width: auto;
1429 1429 position: relative;
1430 1430 margin: 0;
1431 1431 padding: 0 0 8px;
1432 1432 }
1433 1433
1434 1434 #content div.box div.form div.fields div.field div.label-select {
1435 1435 padding: 5px 0 0 5px;
1436 1436 }
1437 1437
1438 1438 #content div.box-left div.form div.fields div.field div.label-select,
1439 1439 #content div.box-right div.form div.fields div.field div.label-select
1440 1440 {
1441 1441 padding: 0 0 8px;
1442 1442 }
1443 1443
1444 1444 #content div.box-left div.form div.fields div.field div.label-textarea,
1445 1445 #content div.box-right div.form div.fields div.field div.label-textarea
1446 1446 {
1447 1447 padding: 0 0 8px !important;
1448 1448 }
1449 1449
1450 1450 #content div.box div.form div.fields div.field div.label label,div.label label
1451 1451 {
1452 1452 color: #393939;
1453 1453 font-weight: 700;
1454 1454 }
1455 1455 #content div.box div.form div.fields div.field div.label label,div.label-summary label
1456 1456 {
1457 1457 color: #393939;
1458 1458 font-weight: 700;
1459 1459 }
1460 1460 #content div.box div.form div.fields div.field div.input {
1461 1461 margin: 0 0 0 200px;
1462 1462 }
1463 1463
1464 1464 #content div.box div.form div.fields div.field div.input.summary {
1465 1465 margin: 0 0 0 110px;
1466 1466 }
1467 1467 #content div.box div.form div.fields div.field div.input.summary-short {
1468 1468 margin: 0 0 0 110px;
1469 1469 }
1470 1470 #content div.box div.form div.fields div.field div.file {
1471 1471 margin: 0 0 0 200px;
1472 1472 }
1473 1473
1474 1474 #content div.box-left div.form div.fields div.field div.input,#content div.box-right div.form div.fields div.field div.input
1475 1475 {
1476 1476 margin: 0 0 0 0px;
1477 1477 }
1478 1478
1479 1479 #content div.box div.form div.fields div.field div.input input,
1480 1480 .reviewer_ac input {
1481 1481 background: #FFF;
1482 1482 border-top: 1px solid #b3b3b3;
1483 1483 border-left: 1px solid #b3b3b3;
1484 1484 border-right: 1px solid #eaeaea;
1485 1485 border-bottom: 1px solid #eaeaea;
1486 1486 color: #000;
1487 1487 font-size: 11px;
1488 1488 margin: 0;
1489 1489 padding: 7px 7px 6px;
1490 1490 }
1491 1491
1492 1492 #content div.box div.form div.fields div.field div.input input#clone_url,
1493 1493 #content div.box div.form div.fields div.field div.input input#clone_url_id
1494 1494 {
1495 1495 font-size: 16px;
1496 1496 padding: 2px;
1497 1497 }
1498 1498
1499 1499 #content div.box div.form div.fields div.field div.file input {
1500 1500 background: none repeat scroll 0 0 #FFFFFF;
1501 1501 border-color: #B3B3B3 #EAEAEA #EAEAEA #B3B3B3;
1502 1502 border-style: solid;
1503 1503 border-width: 1px;
1504 1504 color: #000000;
1505 1505 font-size: 11px;
1506 1506 margin: 0;
1507 1507 padding: 7px 7px 6px;
1508 1508 }
1509 1509
1510 1510 input.disabled {
1511 1511 background-color: #F5F5F5 !important;
1512 1512 }
1513 1513 #content div.box div.form div.fields div.field div.input input.small {
1514 1514 width: 30%;
1515 1515 }
1516 1516
1517 1517 #content div.box div.form div.fields div.field div.input input.medium {
1518 1518 width: 55%;
1519 1519 }
1520 1520
1521 1521 #content div.box div.form div.fields div.field div.input input.large {
1522 1522 width: 85%;
1523 1523 }
1524 1524
1525 1525 #content div.box div.form div.fields div.field div.input input.date {
1526 1526 width: 177px;
1527 1527 }
1528 1528
1529 1529 #content div.box div.form div.fields div.field div.input input.button {
1530 1530 background: #D4D0C8;
1531 1531 border-top: 1px solid #FFF;
1532 1532 border-left: 1px solid #FFF;
1533 1533 border-right: 1px solid #404040;
1534 1534 border-bottom: 1px solid #404040;
1535 1535 color: #000;
1536 1536 margin: 0;
1537 1537 padding: 4px 8px;
1538 1538 }
1539 1539
1540 1540 #content div.box div.form div.fields div.field div.textarea {
1541 1541 border-top: 1px solid #b3b3b3;
1542 1542 border-left: 1px solid #b3b3b3;
1543 1543 border-right: 1px solid #eaeaea;
1544 1544 border-bottom: 1px solid #eaeaea;
1545 1545 margin: 0 0 0 200px;
1546 1546 padding: 10px;
1547 1547 }
1548 1548
1549 1549 #content div.box div.form div.fields div.field div.textarea-editor {
1550 1550 border: 1px solid #ddd;
1551 1551 padding: 0;
1552 1552 }
1553 1553
1554 1554 #content div.box div.form div.fields div.field div.textarea textarea {
1555 1555 width: 100%;
1556 1556 height: 220px;
1557 1557 overflow: hidden;
1558 1558 background: #FFF;
1559 1559 color: #000;
1560 1560 font-size: 11px;
1561 1561 outline: none;
1562 1562 border-width: 0;
1563 1563 margin: 0;
1564 1564 padding: 0;
1565 1565 }
1566 1566
1567 1567 #content div.box-left div.form div.fields div.field div.textarea textarea,#content div.box-right div.form div.fields div.field div.textarea textarea
1568 1568 {
1569 1569 width: 100%;
1570 1570 height: 100px;
1571 1571 }
1572 1572
1573 1573 #content div.box div.form div.fields div.field div.textarea table {
1574 1574 width: 100%;
1575 1575 border: none;
1576 1576 margin: 0;
1577 1577 padding: 0;
1578 1578 }
1579 1579
1580 1580 #content div.box div.form div.fields div.field div.textarea table td {
1581 1581 background: #DDD;
1582 1582 border: none;
1583 1583 padding: 0;
1584 1584 }
1585 1585
1586 1586 #content div.box div.form div.fields div.field div.textarea table td table
1587 1587 {
1588 1588 width: auto;
1589 1589 border: none;
1590 1590 margin: 0;
1591 1591 padding: 0;
1592 1592 }
1593 1593
1594 1594 #content div.box div.form div.fields div.field div.textarea table td table td
1595 1595 {
1596 1596 font-size: 11px;
1597 1597 padding: 5px 5px 5px 0;
1598 1598 }
1599 1599
1600 1600 #content div.box div.form div.fields div.field input[type=text]:focus,
1601 1601 #content div.box div.form div.fields div.field input[type=password]:focus,
1602 1602 #content div.box div.form div.fields div.field input[type=file]:focus,
1603 1603 #content div.box div.form div.fields div.field textarea:focus,
1604 1604 #content div.box div.form div.fields div.field select:focus,
1605 1605 .reviewer_ac input:focus
1606 1606 {
1607 1607 background: #f6f6f6;
1608 1608 border-color: #666;
1609 1609 }
1610 1610
1611 1611 .reviewer_ac {
1612 1612 padding:10px
1613 1613 }
1614 1614
1615 1615 div.form div.fields div.field div.button {
1616 1616 margin: 0;
1617 1617 padding: 0 0 0 8px;
1618 1618 }
1619 1619 #content div.box table.noborder {
1620 1620 border: 1px solid transparent;
1621 1621 }
1622 1622
1623 1623 #content div.box table {
1624 1624 width: 100%;
1625 1625 border-collapse: separate;
1626 1626 margin: 0;
1627 1627 padding: 0;
1628 1628 border: 1px solid #eee;
1629 1629 -webkit-border-radius: 4px;
1630 1630 -moz-border-radius: 4px;
1631 1631 border-radius: 4px;
1632 1632 }
1633 1633
1634 1634 #content div.box table th {
1635 1635 background: #eee;
1636 1636 border-bottom: 1px solid #ddd;
1637 1637 padding: 5px 0px 5px 5px;
1638 1638 text-align: left;
1639 1639 }
1640 1640
1641 1641 #content div.box table th.left {
1642 1642 text-align: left;
1643 1643 }
1644 1644
1645 1645 #content div.box table th.right {
1646 1646 text-align: right;
1647 1647 }
1648 1648
1649 1649 #content div.box table th.center {
1650 1650 text-align: center;
1651 1651 }
1652 1652
1653 1653 #content div.box table th.selected {
1654 1654 vertical-align: middle;
1655 1655 padding: 0;
1656 1656 }
1657 1657
1658 1658 #content div.box table td {
1659 1659 background: #fff;
1660 1660 border-bottom: 1px solid #cdcdcd;
1661 1661 vertical-align: middle;
1662 1662 padding: 5px;
1663 1663 }
1664 1664
1665 1665 #content div.box table tr.selected td {
1666 1666 background: #FFC;
1667 1667 }
1668 1668
1669 1669 #content div.box table td.selected {
1670 1670 width: 3%;
1671 1671 text-align: center;
1672 1672 vertical-align: middle;
1673 1673 padding: 0;
1674 1674 }
1675 1675
1676 1676 #content div.box table td.action {
1677 1677 width: 45%;
1678 1678 text-align: left;
1679 1679 }
1680 1680
1681 1681 #content div.box table td.date {
1682 1682 width: 33%;
1683 1683 text-align: center;
1684 1684 }
1685 1685
1686 1686 #content div.box div.action {
1687 1687 float: right;
1688 1688 background: #FFF;
1689 1689 text-align: right;
1690 1690 margin: 10px 0 0;
1691 1691 padding: 0;
1692 1692 }
1693 1693
1694 1694 #content div.box div.action select {
1695 1695 font-size: 11px;
1696 1696 margin: 0;
1697 1697 }
1698 1698
1699 1699 #content div.box div.action .ui-selectmenu {
1700 1700 margin: 0;
1701 1701 padding: 0;
1702 1702 }
1703 1703
1704 1704 #content div.box div.pagination {
1705 1705 height: 1%;
1706 1706 clear: both;
1707 1707 overflow: hidden;
1708 1708 margin: 10px 0 0;
1709 1709 padding: 0;
1710 1710 }
1711 1711
1712 1712 #content div.box div.pagination ul.pager {
1713 1713 float: right;
1714 1714 text-align: right;
1715 1715 margin: 0;
1716 1716 padding: 0;
1717 1717 }
1718 1718
1719 1719 #content div.box div.pagination ul.pager li {
1720 1720 height: 1%;
1721 1721 float: left;
1722 1722 list-style: none;
1723 1723 background: #ebebeb url("../images/pager.png") repeat-x;
1724 1724 border-top: 1px solid #dedede;
1725 1725 border-left: 1px solid #cfcfcf;
1726 1726 border-right: 1px solid #c4c4c4;
1727 1727 border-bottom: 1px solid #c4c4c4;
1728 1728 color: #4A4A4A;
1729 1729 font-weight: 700;
1730 1730 margin: 0 0 0 4px;
1731 1731 padding: 0;
1732 1732 }
1733 1733
1734 1734 #content div.box div.pagination ul.pager li.separator {
1735 1735 padding: 6px;
1736 1736 }
1737 1737
1738 1738 #content div.box div.pagination ul.pager li.current {
1739 1739 background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
1740 1740 border-top: 1px solid #ccc;
1741 1741 border-left: 1px solid #bebebe;
1742 1742 border-right: 1px solid #b1b1b1;
1743 1743 border-bottom: 1px solid #afafaf;
1744 1744 color: #515151;
1745 1745 padding: 6px;
1746 1746 }
1747 1747
1748 1748 #content div.box div.pagination ul.pager li a {
1749 1749 height: 1%;
1750 1750 display: block;
1751 1751 float: left;
1752 1752 color: #515151;
1753 1753 text-decoration: none;
1754 1754 margin: 0;
1755 1755 padding: 6px;
1756 1756 }
1757 1757
1758 1758 #content div.box div.pagination ul.pager li a:hover,#content div.box div.pagination ul.pager li a:active
1759 1759 {
1760 1760 background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
1761 1761 border-top: 1px solid #ccc;
1762 1762 border-left: 1px solid #bebebe;
1763 1763 border-right: 1px solid #b1b1b1;
1764 1764 border-bottom: 1px solid #afafaf;
1765 1765 margin: -1px;
1766 1766 }
1767 1767
1768 1768 #content div.box div.pagination-wh {
1769 1769 height: 1%;
1770 1770 clear: both;
1771 1771 overflow: hidden;
1772 1772 text-align: right;
1773 1773 margin: 10px 0 0;
1774 1774 padding: 0;
1775 1775 }
1776 1776
1777 1777 #content div.box div.pagination-right {
1778 1778 float: right;
1779 1779 }
1780 1780
1781 1781 #content div.box div.pagination-wh a,
1782 1782 #content div.box div.pagination-wh span.pager_dotdot,
1783 1783 #content div.box div.pagination-wh span.yui-pg-previous,
1784 1784 #content div.box div.pagination-wh span.yui-pg-last,
1785 1785 #content div.box div.pagination-wh span.yui-pg-next,
1786 1786 #content div.box div.pagination-wh span.yui-pg-first
1787 1787 {
1788 1788 height: 1%;
1789 1789 float: left;
1790 1790 background: #ebebeb url("../images/pager.png") repeat-x;
1791 1791 border-top: 1px solid #dedede;
1792 1792 border-left: 1px solid #cfcfcf;
1793 1793 border-right: 1px solid #c4c4c4;
1794 1794 border-bottom: 1px solid #c4c4c4;
1795 1795 color: #4A4A4A;
1796 1796 font-weight: 700;
1797 1797 margin: 0 0 0 4px;
1798 1798 padding: 6px;
1799 1799 }
1800 1800
1801 1801 #content div.box div.pagination-wh span.pager_curpage {
1802 1802 height: 1%;
1803 1803 float: left;
1804 1804 background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
1805 1805 border-top: 1px solid #ccc;
1806 1806 border-left: 1px solid #bebebe;
1807 1807 border-right: 1px solid #b1b1b1;
1808 1808 border-bottom: 1px solid #afafaf;
1809 1809 color: #515151;
1810 1810 font-weight: 700;
1811 1811 margin: 0 0 0 4px;
1812 1812 padding: 6px;
1813 1813 }
1814 1814
1815 1815 #content div.box div.pagination-wh a:hover,#content div.box div.pagination-wh a:active
1816 1816 {
1817 1817 background: #b4b4b4 url("../images/pager_selected.png") repeat-x;
1818 1818 border-top: 1px solid #ccc;
1819 1819 border-left: 1px solid #bebebe;
1820 1820 border-right: 1px solid #b1b1b1;
1821 1821 border-bottom: 1px solid #afafaf;
1822 1822 text-decoration: none;
1823 1823 }
1824 1824
1825 1825 #content div.box div.traffic div.legend {
1826 1826 clear: both;
1827 1827 overflow: hidden;
1828 1828 border-bottom: 1px solid #ddd;
1829 1829 margin: 0 0 10px;
1830 1830 padding: 0 0 10px;
1831 1831 }
1832 1832
1833 1833 #content div.box div.traffic div.legend h6 {
1834 1834 float: left;
1835 1835 border: none;
1836 1836 margin: 0;
1837 1837 padding: 0;
1838 1838 }
1839 1839
1840 1840 #content div.box div.traffic div.legend li {
1841 1841 list-style: none;
1842 1842 float: left;
1843 1843 font-size: 11px;
1844 1844 margin: 0;
1845 1845 padding: 0 8px 0 4px;
1846 1846 }
1847 1847
1848 1848 #content div.box div.traffic div.legend li.visits {
1849 1849 border-left: 12px solid #edc240;
1850 1850 }
1851 1851
1852 1852 #content div.box div.traffic div.legend li.pageviews {
1853 1853 border-left: 12px solid #afd8f8;
1854 1854 }
1855 1855
1856 1856 #content div.box div.traffic table {
1857 1857 width: auto;
1858 1858 }
1859 1859
1860 1860 #content div.box div.traffic table td {
1861 1861 background: transparent;
1862 1862 border: none;
1863 1863 padding: 2px 3px 3px;
1864 1864 }
1865 1865
1866 1866 #content div.box div.traffic table td.legendLabel {
1867 1867 padding: 0 3px 2px;
1868 1868 }
1869 1869
1870 1870 #summary {
1871 1871
1872 1872 }
1873 1873
1874 1874 #summary .metatag {
1875 1875 display: inline-block;
1876 1876 padding: 3px 5px;
1877 1877 margin-bottom: 3px;
1878 1878 margin-right: 1px;
1879 1879 border-radius: 5px;
1880 1880 }
1881 1881
1882 1882 #content div.box #summary p {
1883 1883 margin-bottom: -5px;
1884 1884 width: 600px;
1885 1885 white-space: pre-wrap;
1886 1886 }
1887 1887
1888 1888 #content div.box #summary p:last-child {
1889 1889 margin-bottom: 9px;
1890 1890 }
1891 1891
1892 1892 #content div.box #summary p:first-of-type {
1893 1893 margin-top: 9px;
1894 1894 }
1895 1895
1896 1896 .metatag {
1897 1897 display: inline-block;
1898 1898 margin-right: 1px;
1899 1899 -webkit-border-radius: 4px 4px 4px 4px;
1900 1900 -khtml-border-radius: 4px 4px 4px 4px;
1901 1901 -moz-border-radius: 4px 4px 4px 4px;
1902 1902 border-radius: 4px 4px 4px 4px;
1903 1903
1904 1904 border: solid 1px #9CF;
1905 1905 padding: 2px 3px 2px 3px !important;
1906 1906 background-color: #DEF;
1907 1907 }
1908 1908
1909 1909 .metatag[tag="dead"] {
1910 1910 background-color: #E44;
1911 1911 }
1912 1912
1913 1913 .metatag[tag="stale"] {
1914 1914 background-color: #EA4;
1915 1915 }
1916 1916
1917 1917 .metatag[tag="featured"] {
1918 1918 background-color: #AEA;
1919 1919 }
1920 1920
1921 1921 .metatag[tag="requires"] {
1922 1922 background-color: #9CF;
1923 1923 }
1924 1924
1925 1925 .metatag[tag="recommends"] {
1926 1926 background-color: #BDF;
1927 1927 }
1928 1928
1929 1929 .metatag[tag="lang"] {
1930 1930 background-color: #FAF474;
1931 1931 }
1932 1932
1933 1933 .metatag[tag="license"] {
1934 1934 border: solid 1px #9CF;
1935 1935 background-color: #DEF;
1936 1936 target-new: tab !important;
1937 1937 }
1938 1938 .metatag[tag="see"] {
1939 1939 border: solid 1px #CBD;
1940 1940 background-color: #EDF;
1941 1941 }
1942 1942
1943 1943 a.metatag[tag="license"]:hover {
1944 1944 background-color: #003367;
1945 1945 color: #FFF;
1946 1946 text-decoration: none;
1947 1947 }
1948 1948
1949 1949 #summary .desc {
1950 1950 white-space: pre;
1951 1951 width: 100%;
1952 1952 }
1953 1953
1954 1954 #summary .repo_name {
1955 1955 font-size: 1.6em;
1956 1956 font-weight: bold;
1957 1957 vertical-align: baseline;
1958 1958 clear: right
1959 1959 }
1960 1960
1961 1961 #footer {
1962 1962 clear: both;
1963 1963 overflow: hidden;
1964 1964 text-align: right;
1965 1965 margin: 0;
1966 1966 padding: 0 10px 4px;
1967 1967 margin: -10px 0 0;
1968 1968 }
1969 1969
1970 1970 #footer div#footer-inner {
1971 1971 background-color: #003B76;
1972 1972 background-repeat : repeat-x;
1973 1973 background-image : -khtml-gradient( linear, left top, left bottom, from(#003B76), to(#00376E));
1974 1974 background-image : -moz-linear-gradient(top, #003b76, #00376e);
1975 1975 background-image : -ms-linear-gradient( top, #003b76, #00376e);
1976 1976 background-image : -webkit-gradient( linear, left top, left bottom, color-stop( 0%, #003b76), color-stop( 100%, #00376e));
1977 1977 background-image : -webkit-linear-gradient( top, #003b76, #00376e));
1978 1978 background-image : -o-linear-gradient( top, #003b76, #00376e));
1979 1979 background-image : linear-gradient( top, #003b76, #00376e);
1980 1980 filter :progid : DXImageTransform.Microsoft.gradient ( startColorstr = '#003b76', endColorstr = '#00376e', GradientType = 0);
1981 1981 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
1982 1982 -webkit-border-radius: 4px 4px 4px 4px;
1983 1983 -khtml-border-radius: 4px 4px 4px 4px;
1984 1984 -moz-border-radius: 4px 4px 4px 4px;
1985 1985 border-radius: 4px 4px 4px 4px;
1986 1986 }
1987 1987
1988 1988 #footer div#footer-inner p {
1989 1989 padding: 15px 25px 15px 0;
1990 1990 color: #FFF;
1991 1991 font-weight: 700;
1992 1992 }
1993 1993
1994 1994 #footer div#footer-inner .footer-link {
1995 1995 float: left;
1996 1996 padding-left: 10px;
1997 1997 }
1998 1998
1999 1999 #footer div#footer-inner .footer-link a,#footer div#footer-inner .footer-link-right a
2000 2000 {
2001 2001 color: #FFF;
2002 2002 }
2003 2003
2004 2004 #login div.title {
2005 2005 clear: both;
2006 2006 overflow: hidden;
2007 2007 position: relative;
2008 2008 background-color: #003B76;
2009 2009 background-repeat : repeat-x;
2010 2010 background-image : -khtml-gradient( linear, left top, left bottom, from(#003B76), to(#00376E));
2011 2011 background-image : -moz-linear-gradient( top, #003b76, #00376e);
2012 2012 background-image : -ms-linear-gradient( top, #003b76, #00376e);
2013 2013 background-image : -webkit-gradient( linear, left top, left bottom, color-stop( 0%, #003b76), color-stop( 100%, #00376e));
2014 2014 background-image : -webkit-linear-gradient( top, #003b76, #00376e));
2015 2015 background-image : -o-linear-gradient( top, #003b76, #00376e));
2016 2016 background-image : linear-gradient( top, #003b76, #00376e);
2017 2017 filter : progid : DXImageTransform.Microsoft.gradient ( startColorstr = '#003b76', endColorstr = '#00376e', GradientType = 0);
2018 2018 margin: 0 auto;
2019 2019 padding: 0;
2020 2020 }
2021 2021
2022 2022 #login div.inner {
2023 2023 background: #FFF url("../images/login.png") no-repeat top left;
2024 2024 border-top: none;
2025 2025 border-bottom: none;
2026 2026 margin: 0 auto;
2027 2027 padding: 20px;
2028 2028 }
2029 2029
2030 2030 #login div.form div.fields div.field div.label {
2031 2031 width: 173px;
2032 2032 float: left;
2033 2033 text-align: right;
2034 2034 margin: 2px 10px 0 0;
2035 2035 padding: 5px 0 0 5px;
2036 2036 }
2037 2037
2038 2038 #login div.form div.fields div.field div.input input {
2039 2039 background: #FFF;
2040 2040 border-top: 1px solid #b3b3b3;
2041 2041 border-left: 1px solid #b3b3b3;
2042 2042 border-right: 1px solid #eaeaea;
2043 2043 border-bottom: 1px solid #eaeaea;
2044 2044 color: #000;
2045 2045 font-size: 11px;
2046 2046 margin: 0;
2047 2047 padding: 7px 7px 6px;
2048 2048 }
2049 2049
2050 2050 #login div.form div.fields div.buttons {
2051 2051 clear: both;
2052 2052 overflow: hidden;
2053 2053 border-top: 1px solid #DDD;
2054 2054 text-align: right;
2055 2055 margin: 0;
2056 2056 padding: 10px 0 0;
2057 2057 }
2058 2058
2059 2059 #login div.form div.links {
2060 2060 clear: both;
2061 2061 overflow: hidden;
2062 2062 margin: 10px 0 0;
2063 2063 padding: 0 0 2px;
2064 2064 }
2065 2065
2066 2066 .user-menu{
2067 2067 margin: 0px !important;
2068 2068 float: left;
2069 2069 }
2070 2070
2071 2071 .user-menu .container{
2072 2072 padding:0px 4px 0px 4px;
2073 2073 margin: 0px 0px 0px 0px;
2074 2074 }
2075 2075
2076 2076 .user-menu .gravatar{
2077 2077 margin: 0px 0px 0px 0px;
2078 2078 cursor: pointer;
2079 2079 }
2080 2080 .user-menu .gravatar.enabled{
2081 2081 background-color: #FDF784 !important;
2082 2082 }
2083 2083 .user-menu .gravatar:hover{
2084 2084 background-color: #FDF784 !important;
2085 2085 }
2086 2086 #quick_login{
2087 2087 min-height: 80px;
2088 2088 margin: 37px 0 0 -251px;
2089 2089 padding: 4px;
2090 2090 position: absolute;
2091 2091 width: 278px;
2092 2092 background-color: #003B76;
2093 2093 background-repeat: repeat-x;
2094 2094 background-image: -khtml-gradient(linear, left top, left bottom, from(#003B76), to(#00376E) );
2095 2095 background-image: -moz-linear-gradient(top, #003b76, #00376e);
2096 2096 background-image: -ms-linear-gradient(top, #003b76, #00376e);
2097 2097 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), color-stop(100%, #00376e) );
2098 2098 background-image: -webkit-linear-gradient(top, #003b76, #00376e);
2099 2099 background-image: -o-linear-gradient(top, #003b76, #00376e);
2100 2100 background-image: linear-gradient(top, #003b76, #00376e);
2101 2101 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76', endColorstr='#00376e', GradientType=0 );
2102 2102
2103 2103 z-index: 999;
2104 2104 -webkit-border-radius: 0px 0px 4px 4px;
2105 2105 -khtml-border-radius: 0px 0px 4px 4px;
2106 2106 -moz-border-radius: 0px 0px 4px 4px;
2107 2107 border-radius: 0px 0px 4px 4px;
2108 2108 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
2109 2109 }
2110 2110 #quick_login h4{
2111 2111 color: #fff;
2112 2112 padding: 5px 0px 5px 14px;
2113 2113 }
2114 2114
2115 2115 #quick_login .password_forgoten {
2116 2116 padding-right: 10px;
2117 2117 padding-top: 0px;
2118 2118 text-align: left;
2119 2119 }
2120 2120
2121 2121 #quick_login .password_forgoten a {
2122 2122 font-size: 10px;
2123 2123 color: #fff;
2124 2124 }
2125 2125
2126 2126 #quick_login .register {
2127 2127 padding-right: 10px;
2128 2128 padding-top: 5px;
2129 2129 text-align: left;
2130 2130 }
2131 2131
2132 2132 #quick_login .register a {
2133 2133 font-size: 10px;
2134 2134 color: #fff;
2135 2135 }
2136 2136
2137 2137 #quick_login .submit {
2138 2138 margin: -20px 0 0 0px;
2139 2139 position: absolute;
2140 2140 right: 15px;
2141 2141 }
2142 2142
2143 2143 #quick_login .links_left{
2144 2144 float: left;
2145 2145 }
2146 2146 #quick_login .links_right{
2147 2147 float: right;
2148 2148 }
2149 2149 #quick_login .full_name{
2150 2150 color: #FFFFFF;
2151 2151 font-weight: bold;
2152 2152 padding: 3px;
2153 2153 }
2154 2154 #quick_login .big_gravatar{
2155 2155 padding:4px 0px 0px 6px;
2156 2156 }
2157 2157 #quick_login .inbox{
2158 2158 padding:4px 0px 0px 6px;
2159 2159 color: #FFFFFF;
2160 2160 font-weight: bold;
2161 2161 }
2162 2162 #quick_login .inbox a{
2163 2163 color: #FFFFFF;
2164 2164 }
2165 2165 #quick_login .email,#quick_login .email a{
2166 2166 color: #FFFFFF;
2167 2167 padding: 3px;
2168 2168
2169 2169 }
2170 2170 #quick_login .links .logout{
2171 2171
2172 2172 }
2173 2173
2174 2174 #quick_login div.form div.fields {
2175 2175 padding-top: 2px;
2176 2176 padding-left: 10px;
2177 2177 }
2178 2178
2179 2179 #quick_login div.form div.fields div.field {
2180 2180 padding: 5px;
2181 2181 }
2182 2182
2183 2183 #quick_login div.form div.fields div.field div.label label {
2184 2184 color: #fff;
2185 2185 padding-bottom: 3px;
2186 2186 }
2187 2187
2188 2188 #quick_login div.form div.fields div.field div.input input {
2189 2189 width: 236px;
2190 2190 background: #FFF;
2191 2191 border-top: 1px solid #b3b3b3;
2192 2192 border-left: 1px solid #b3b3b3;
2193 2193 border-right: 1px solid #eaeaea;
2194 2194 border-bottom: 1px solid #eaeaea;
2195 2195 color: #000;
2196 2196 font-size: 11px;
2197 2197 margin: 0;
2198 2198 padding: 5px 7px 4px;
2199 2199 }
2200 2200
2201 2201 #quick_login div.form div.fields div.buttons {
2202 2202 clear: both;
2203 2203 overflow: hidden;
2204 2204 text-align: right;
2205 2205 margin: 0;
2206 2206 padding: 5px 14px 0px 5px;
2207 2207 }
2208 2208
2209 2209 #quick_login div.form div.links {
2210 2210 clear: both;
2211 2211 overflow: hidden;
2212 2212 margin: 10px 0 0;
2213 2213 padding: 0 0 2px;
2214 2214 }
2215 2215
2216 2216 #quick_login ol.links{
2217 2217 display: block;
2218 2218 font-weight: bold;
2219 2219 list-style: none outside none;
2220 2220 text-align: right;
2221 2221 }
2222 2222 #quick_login ol.links li{
2223 2223 line-height: 27px;
2224 2224 margin: 0;
2225 2225 padding: 0;
2226 2226 color: #fff;
2227 2227 display: block;
2228 2228 float:none !important;
2229 2229 }
2230 2230
2231 2231 #quick_login ol.links li a{
2232 2232 color: #fff;
2233 2233 display: block;
2234 2234 padding: 2px;
2235 2235 }
2236 2236 #quick_login ol.links li a:HOVER{
2237 2237 background-color: inherit !important;
2238 2238 }
2239 2239
2240 2240 #register div.title {
2241 2241 clear: both;
2242 2242 overflow: hidden;
2243 2243 position: relative;
2244 2244 background-color: #003B76;
2245 2245 background-repeat: repeat-x;
2246 2246 background-image: -khtml-gradient(linear, left top, left bottom, from(#003B76), to(#00376E) );
2247 2247 background-image: -moz-linear-gradient(top, #003b76, #00376e);
2248 2248 background-image: -ms-linear-gradient(top, #003b76, #00376e);
2249 2249 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #003b76), color-stop(100%, #00376e) );
2250 2250 background-image: -webkit-linear-gradient(top, #003b76, #00376e);
2251 2251 background-image: -o-linear-gradient(top, #003b76, #00376e);
2252 2252 background-image: linear-gradient(top, #003b76, #00376e);
2253 2253 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#003b76',
2254 2254 endColorstr='#00376e', GradientType=0 );
2255 2255 margin: 0 auto;
2256 2256 padding: 0;
2257 2257 }
2258 2258
2259 2259 #register div.inner {
2260 2260 background: #FFF;
2261 2261 border-top: none;
2262 2262 border-bottom: none;
2263 2263 margin: 0 auto;
2264 2264 padding: 20px;
2265 2265 }
2266 2266
2267 2267 #register div.form div.fields div.field div.label {
2268 2268 width: 135px;
2269 2269 float: left;
2270 2270 text-align: right;
2271 2271 margin: 2px 10px 0 0;
2272 2272 padding: 5px 0 0 5px;
2273 2273 }
2274 2274
2275 2275 #register div.form div.fields div.field div.input input {
2276 2276 width: 300px;
2277 2277 background: #FFF;
2278 2278 border-top: 1px solid #b3b3b3;
2279 2279 border-left: 1px solid #b3b3b3;
2280 2280 border-right: 1px solid #eaeaea;
2281 2281 border-bottom: 1px solid #eaeaea;
2282 2282 color: #000;
2283 2283 font-size: 11px;
2284 2284 margin: 0;
2285 2285 padding: 7px 7px 6px;
2286 2286 }
2287 2287
2288 2288 #register div.form div.fields div.buttons {
2289 2289 clear: both;
2290 2290 overflow: hidden;
2291 2291 border-top: 1px solid #DDD;
2292 2292 text-align: left;
2293 2293 margin: 0;
2294 2294 padding: 10px 0 0 150px;
2295 2295 }
2296 2296
2297 2297 #register div.form div.activation_msg {
2298 2298 padding-top: 4px;
2299 2299 padding-bottom: 4px;
2300 2300 }
2301 2301
2302 2302 #journal .journal_day {
2303 2303 font-size: 20px;
2304 2304 padding: 10px 0px;
2305 2305 border-bottom: 2px solid #DDD;
2306 2306 margin-left: 10px;
2307 2307 margin-right: 10px;
2308 2308 }
2309 2309
2310 2310 #journal .journal_container {
2311 2311 padding: 5px;
2312 2312 clear: both;
2313 2313 margin: 0px 5px 0px 10px;
2314 2314 }
2315 2315
2316 2316 #journal .journal_action_container {
2317 2317 padding-left: 38px;
2318 2318 }
2319 2319
2320 2320 #journal .journal_user {
2321 2321 color: #747474;
2322 2322 font-size: 14px;
2323 2323 font-weight: bold;
2324 2324 height: 30px;
2325 2325 }
2326 2326
2327 2327 #journal .journal_user.deleted {
2328 2328 color: #747474;
2329 2329 font-size: 14px;
2330 2330 font-weight: normal;
2331 2331 height: 30px;
2332 2332 font-style: italic;
2333 2333 }
2334 2334
2335 2335
2336 2336 #journal .journal_icon {
2337 2337 clear: both;
2338 2338 float: left;
2339 2339 padding-right: 4px;
2340 2340 padding-top: 3px;
2341 2341 }
2342 2342
2343 2343 #journal .journal_action {
2344 2344 padding-top: 4px;
2345 2345 min-height: 2px;
2346 2346 float: left
2347 2347 }
2348 2348
2349 2349 #journal .journal_action_params {
2350 2350 clear: left;
2351 2351 padding-left: 22px;
2352 2352 }
2353 2353
2354 2354 #journal .journal_repo {
2355 2355 float: left;
2356 2356 margin-left: 6px;
2357 2357 padding-top: 3px;
2358 2358 }
2359 2359
2360 2360 #journal .date {
2361 2361 clear: both;
2362 2362 color: #777777;
2363 2363 font-size: 11px;
2364 2364 padding-left: 22px;
2365 2365 }
2366 2366
2367 2367 #journal .journal_repo .journal_repo_name {
2368 2368 font-weight: bold;
2369 2369 font-size: 1.1em;
2370 2370 }
2371 2371
2372 2372 #journal .compare_view {
2373 2373 padding: 5px 0px 5px 0px;
2374 2374 width: 95px;
2375 2375 }
2376 2376
2377 2377 .journal_highlight {
2378 2378 font-weight: bold;
2379 2379 padding: 0 2px;
2380 2380 vertical-align: bottom;
2381 2381 }
2382 2382
2383 2383 .trending_language_tbl,.trending_language_tbl td {
2384 2384 border: 0 !important;
2385 2385 margin: 0 !important;
2386 2386 padding: 0 !important;
2387 2387 }
2388 2388
2389 2389 .trending_language_tbl,.trending_language_tbl tr {
2390 2390 border-spacing: 1px;
2391 2391 }
2392 2392
2393 2393 .trending_language {
2394 2394 background-color: #003367;
2395 2395 color: #FFF;
2396 2396 display: block;
2397 2397 min-width: 20px;
2398 2398 text-decoration: none;
2399 2399 height: 12px;
2400 2400 margin-bottom: 0px;
2401 2401 margin-left: 5px;
2402 2402 white-space: pre;
2403 2403 padding: 3px;
2404 2404 }
2405 2405
2406 2406 h3.files_location {
2407 2407 font-size: 1.8em;
2408 2408 font-weight: 700;
2409 2409 border-bottom: none !important;
2410 2410 margin: 10px 0 !important;
2411 2411 }
2412 2412
2413 2413 #files_data dl dt {
2414 2414 float: left;
2415 2415 width: 60px;
2416 2416 margin: 0 !important;
2417 2417 padding: 5px;
2418 2418 }
2419 2419
2420 2420 #files_data dl dd {
2421 2421 margin: 0 !important;
2422 2422 padding: 5px !important;
2423 2423 }
2424 2424
2425 2425 .file_history{
2426 2426 padding-top:10px;
2427 2427 font-size:16px;
2428 2428 }
2429 2429 .file_author{
2430 2430 float: left;
2431 2431 }
2432 2432
2433 2433 .file_author .item{
2434 2434 float:left;
2435 2435 padding:5px;
2436 2436 color: #888;
2437 2437 }
2438 2438
2439 2439 .tablerow0 {
2440 2440 background-color: #F8F8F8;
2441 2441 }
2442 2442
2443 2443 .tablerow1 {
2444 2444 background-color: #FFFFFF;
2445 2445 }
2446 2446
2447 2447 .changeset_id {
2448 2448 font-family: monospace;
2449 2449 color: #666666;
2450 2450 }
2451 2451
2452 2452 .changeset_hash {
2453 2453 color: #000000;
2454 2454 }
2455 2455
2456 2456 #changeset_content {
2457 2457 border-left: 1px solid #CCC;
2458 2458 border-right: 1px solid #CCC;
2459 2459 border-bottom: 1px solid #CCC;
2460 2460 padding: 5px;
2461 2461 }
2462 2462
2463 2463 #changeset_compare_view_content {
2464 2464 border: 1px solid #CCC;
2465 2465 padding: 5px;
2466 2466 }
2467 2467
2468 2468 #changeset_content .container {
2469 2469 min-height: 100px;
2470 2470 font-size: 1.2em;
2471 2471 overflow: hidden;
2472 2472 }
2473 2473
2474 2474 #changeset_compare_view_content .compare_view_commits {
2475 2475 width: auto !important;
2476 2476 }
2477 2477
2478 2478 #changeset_compare_view_content .compare_view_commits td {
2479 2479 padding: 0px 0px 0px 12px !important;
2480 2480 }
2481 2481
2482 2482 #changeset_content .container .right {
2483 2483 float: right;
2484 2484 width: 20%;
2485 2485 text-align: right;
2486 2486 }
2487 2487
2488 2488 #changeset_content .container .left .message {
2489 2489 white-space: pre-wrap;
2490 2490 }
2491 2491 #changeset_content .container .left .message a:hover {
2492 2492 text-decoration: none;
2493 2493 }
2494 2494 .cs_files .cur_cs {
2495 2495 margin: 10px 2px;
2496 2496 font-weight: bold;
2497 2497 }
2498 2498
2499 2499 .cs_files .node {
2500 2500 float: left;
2501 2501 }
2502 2502
2503 2503 .cs_files .changes {
2504 2504 float: right;
2505 2505 color:#003367;
2506 2506
2507 2507 }
2508 2508
2509 2509 .cs_files .changes .added {
2510 2510 background-color: #BBFFBB;
2511 2511 float: left;
2512 2512 text-align: center;
2513 2513 font-size: 9px;
2514 2514 padding: 2px 0px 2px 0px;
2515 2515 }
2516 2516
2517 2517 .cs_files .changes .deleted {
2518 2518 background-color: #FF8888;
2519 2519 float: left;
2520 2520 text-align: center;
2521 2521 font-size: 9px;
2522 2522 padding: 2px 0px 2px 0px;
2523 2523 }
2524 2524 /*new binary*/
2525 2525 .cs_files .changes .bin1 {
2526 2526 background-color: #BBFFBB;
2527 2527 float: left;
2528 2528 text-align: center;
2529 2529 font-size: 9px;
2530 2530 padding: 2px 0px 2px 0px;
2531 2531 }
2532 2532
2533 2533 /*deleted binary*/
2534 2534 .cs_files .changes .bin2 {
2535 2535 background-color: #FF8888;
2536 2536 float: left;
2537 2537 text-align: center;
2538 2538 font-size: 9px;
2539 2539 padding: 2px 0px 2px 0px;
2540 2540 }
2541 2541
2542 2542 /*mod binary*/
2543 2543 .cs_files .changes .bin3 {
2544 2544 background-color: #DDDDDD;
2545 2545 float: left;
2546 2546 text-align: center;
2547 2547 font-size: 9px;
2548 2548 padding: 2px 0px 2px 0px;
2549 2549 }
2550 2550
2551 2551 /*rename file*/
2552 2552 .cs_files .changes .bin4 {
2553 2553 background-color: #6D99FF;
2554 2554 float: left;
2555 2555 text-align: center;
2556 2556 font-size: 9px;
2557 2557 padding: 2px 0px 2px 0px;
2558 2558 }
2559 2559
2560 2560
2561 2561 .cs_files .cs_added,.cs_files .cs_A {
2562 2562 background: url("../images/icons/page_white_add.png") no-repeat scroll
2563 2563 3px;
2564 2564 height: 16px;
2565 2565 padding-left: 20px;
2566 2566 margin-top: 7px;
2567 2567 text-align: left;
2568 2568 }
2569 2569
2570 2570 .cs_files .cs_changed,.cs_files .cs_M {
2571 2571 background: url("../images/icons/page_white_edit.png") no-repeat scroll
2572 2572 3px;
2573 2573 height: 16px;
2574 2574 padding-left: 20px;
2575 2575 margin-top: 7px;
2576 2576 text-align: left;
2577 2577 }
2578 2578
2579 2579 .cs_files .cs_removed,.cs_files .cs_D {
2580 2580 background: url("../images/icons/page_white_delete.png") no-repeat
2581 2581 scroll 3px;
2582 2582 height: 16px;
2583 2583 padding-left: 20px;
2584 2584 margin-top: 7px;
2585 2585 text-align: left;
2586 2586 }
2587 2587
2588 2588 #graph {
2589 2589 overflow: hidden;
2590 2590 }
2591 2591
2592 2592 #graph_nodes {
2593 2593 float: left;
2594 2594 margin-right: 0px;
2595 2595 margin-top: 0px;
2596 2596 }
2597 2597
2598 2598 #graph_content {
2599 2599 width: 80%;
2600 2600 float: left;
2601 2601 }
2602 2602
2603 2603 #graph_content .container_header {
2604 2604 border-bottom: 1px solid #DDD;
2605 2605 padding: 10px;
2606 2606 height: 25px;
2607 2607 }
2608 2608
2609 2609 #graph_content #rev_range_container {
2610 2610 float: left;
2611 2611 margin: 0px 0px 0px 3px;
2612 2612 }
2613 2613
2614 2614 #graph_content #rev_range_clear {
2615 2615 float: left;
2616 2616 margin: 0px 0px 0px 3px;
2617 2617 }
2618 2618
2619 2619 #graph_content .container {
2620 2620 border-bottom: 1px solid #DDD;
2621 2621 height: 56px;
2622 2622 overflow: hidden;
2623 2623 }
2624 2624
2625 2625 #graph_content .container .right {
2626 2626 float: right;
2627 2627 width: 23%;
2628 2628 text-align: right;
2629 2629 }
2630 2630
2631 2631 #graph_content .container .left {
2632 2632 float: left;
2633 2633 width: 25%;
2634 2634 padding-left: 5px;
2635 2635 }
2636 2636
2637 2637 #graph_content .container .mid {
2638 2638 float: left;
2639 2639 width: 49%;
2640 2640 }
2641 2641
2642 2642
2643 2643 #graph_content .container .left .date {
2644 2644 color: #666;
2645 2645 padding-left: 22px;
2646 2646 font-size: 10px;
2647 2647 }
2648 2648
2649 2649 #graph_content .container .left .author {
2650 2650 height: 22px;
2651 2651 }
2652 2652
2653 2653 #graph_content .container .left .author .user {
2654 2654 color: #444444;
2655 2655 float: left;
2656 2656 margin-left: -4px;
2657 2657 margin-top: 4px;
2658 2658 }
2659 2659
2660 2660 #graph_content .container .mid .message {
2661 2661 white-space: pre-wrap;
2662 2662 }
2663 2663
2664 2664 #graph_content .container .mid .message a:hover{
2665 2665 text-decoration: none;
2666 2666 }
2667 2667
2668 2668 .revision-link
2669 2669 {
2670 2670 color:#3F6F9F;
2671 2671 font-weight: bold !important;
2672 2672 }
2673 2673
2674 2674 .issue-tracker-link{
2675 2675 color:#3F6F9F;
2676 2676 font-weight: bold !important;
2677 2677 }
2678 2678
2679 2679 .changeset-status-container{
2680 2680 padding-right: 5px;
2681 2681 margin-top:1px;
2682 2682 float:right;
2683 2683 height:14px;
2684 2684 }
2685 2685 .code-header .changeset-status-container{
2686 2686 float:left;
2687 2687 padding:2px 0px 0px 2px;
2688 2688 }
2689 2689 .changeset-status-container .changeset-status-lbl{
2690 2690 color: rgb(136, 136, 136);
2691 2691 float: left;
2692 2692 padding: 3px 4px 0px 0px
2693 2693 }
2694 2694 .code-header .changeset-status-container .changeset-status-lbl{
2695 2695 float: left;
2696 2696 padding: 0px 4px 0px 0px;
2697 2697 }
2698 2698 .changeset-status-container .changeset-status-ico{
2699 2699 float: left;
2700 2700 }
2701 2701 .code-header .changeset-status-container .changeset-status-ico, .container .changeset-status-ico{
2702 2702 float: left;
2703 2703 }
2704 2704 .right .comments-container{
2705 2705 padding-right: 5px;
2706 2706 margin-top:1px;
2707 2707 float:right;
2708 2708 height:14px;
2709 2709 }
2710 2710
2711 2711 .right .comments-cnt{
2712 2712 float: left;
2713 2713 color: rgb(136, 136, 136);
2714 2714 padding-right: 2px;
2715 2715 }
2716 2716
2717 2717 .right .changes{
2718 2718 clear: both;
2719 2719 }
2720 2720
2721 2721 .right .changes .changed_total {
2722 2722 display: block;
2723 2723 float: right;
2724 2724 text-align: center;
2725 2725 min-width: 45px;
2726 2726 cursor: pointer;
2727 2727 color: #444444;
2728 2728 background: #FEA;
2729 2729 -webkit-border-radius: 0px 0px 0px 6px;
2730 2730 -moz-border-radius: 0px 0px 0px 6px;
2731 2731 border-radius: 0px 0px 0px 6px;
2732 2732 padding: 1px;
2733 2733 }
2734 2734
2735 2735 .right .changes .added,.changed,.removed {
2736 2736 display: block;
2737 2737 padding: 1px;
2738 2738 color: #444444;
2739 2739 float: right;
2740 2740 text-align: center;
2741 2741 min-width: 15px;
2742 2742 }
2743 2743
2744 2744 .right .changes .added {
2745 2745 background: #CFC;
2746 2746 }
2747 2747
2748 2748 .right .changes .changed {
2749 2749 background: #FEA;
2750 2750 }
2751 2751
2752 2752 .right .changes .removed {
2753 2753 background: #FAA;
2754 2754 }
2755 2755
2756 2756 .right .merge {
2757 2757 padding: 1px 3px 1px 3px;
2758 2758 background-color: #fca062;
2759 2759 font-size: 10px;
2760 2760 font-weight: bold;
2761 2761 color: #ffffff;
2762 2762 text-transform: uppercase;
2763 2763 white-space: nowrap;
2764 2764 -webkit-border-radius: 3px;
2765 2765 -moz-border-radius: 3px;
2766 2766 border-radius: 3px;
2767 2767 margin-right: 2px;
2768 2768 }
2769 2769
2770 2770 .right .parent {
2771 2771 color: #666666;
2772 2772 clear:both;
2773 2773 }
2774 2774 .right .logtags{
2775 2775 padding: 2px 2px 2px 2px;
2776 2776 }
2777 2777 .right .logtags .branchtag,.right .logtags .tagtag,.right .logtags .booktag{
2778 2778 margin: 0px 2px;
2779 2779 }
2780 2780
2781 .right .logtags .branchtag,.logtags .branchtag {
2781 .right .logtags .branchtag,
2782 .logtags .branchtag,
2783 .spantag {
2782 2784 padding: 1px 3px 1px 3px;
2783 2785 background-color: #bfbfbf;
2784 2786 font-size: 10px;
2785 2787 font-weight: bold;
2786 2788 color: #ffffff;
2787 2789 text-transform: uppercase;
2788 2790 white-space: nowrap;
2789 2791 -webkit-border-radius: 3px;
2790 2792 -moz-border-radius: 3px;
2791 2793 border-radius: 3px;
2792 2794 }
2793 2795 .right .logtags .branchtag a:hover,.logtags .branchtag a{
2794 2796 color: #ffffff;
2795 2797 }
2796 2798 .right .logtags .branchtag a:hover,.logtags .branchtag a:hover{
2797 2799 text-decoration: none;
2798 2800 color: #ffffff;
2799 2801 }
2800 2802 .right .logtags .tagtag,.logtags .tagtag {
2801 2803 padding: 1px 3px 1px 3px;
2802 2804 background-color: #62cffc;
2803 2805 font-size: 10px;
2804 2806 font-weight: bold;
2805 2807 color: #ffffff;
2806 2808 text-transform: uppercase;
2807 2809 white-space: nowrap;
2808 2810 -webkit-border-radius: 3px;
2809 2811 -moz-border-radius: 3px;
2810 2812 border-radius: 3px;
2811 2813 }
2812 2814 .right .logtags .tagtag a:hover,.logtags .tagtag a{
2813 2815 color: #ffffff;
2814 2816 }
2815 2817 .right .logtags .tagtag a:hover,.logtags .tagtag a:hover{
2816 2818 text-decoration: none;
2817 2819 color: #ffffff;
2818 2820 }
2819 2821 .right .logbooks .bookbook,.logbooks .bookbook,.right .logtags .bookbook,.logtags .bookbook {
2820 2822 padding: 1px 3px 1px 3px;
2821 2823 background-color: #46A546;
2822 2824 font-size: 10px;
2823 2825 font-weight: bold;
2824 2826 color: #ffffff;
2825 2827 text-transform: uppercase;
2826 2828 white-space: nowrap;
2827 2829 -webkit-border-radius: 3px;
2828 2830 -moz-border-radius: 3px;
2829 2831 border-radius: 3px;
2830 2832 }
2831 2833 .right .logbooks .bookbook,.logbooks .bookbook a,.right .logtags .bookbook,.logtags .bookbook a{
2832 2834 color: #ffffff;
2833 2835 }
2834 2836 .right .logbooks .bookbook,.logbooks .bookbook a:hover,.right .logtags .bookbook,.logtags .bookbook a:hover{
2835 2837 text-decoration: none;
2836 2838 color: #ffffff;
2837 2839 }
2838 2840 div.browserblock {
2839 2841 overflow: hidden;
2840 2842 border: 1px solid #ccc;
2841 2843 background: #f8f8f8;
2842 2844 font-size: 100%;
2843 2845 line-height: 125%;
2844 2846 padding: 0;
2845 2847 -webkit-border-radius: 6px 6px 0px 0px;
2846 2848 -moz-border-radius: 6px 6px 0px 0px;
2847 2849 border-radius: 6px 6px 0px 0px;
2848 2850 }
2849 2851
2850 2852 div.browserblock .browser-header {
2851 2853 background: #FFF;
2852 2854 padding: 10px 0px 15px 0px;
2853 2855 width: 100%;
2854 2856 }
2855 2857
2856 2858 div.browserblock .browser-nav {
2857 2859 float: left
2858 2860 }
2859 2861
2860 2862 div.browserblock .browser-branch {
2861 2863 float: left;
2862 2864 }
2863 2865
2864 2866 div.browserblock .browser-branch label {
2865 2867 color: #4A4A4A;
2866 2868 vertical-align: text-top;
2867 2869 }
2868 2870
2869 2871 div.browserblock .browser-header span {
2870 2872 margin-left: 5px;
2871 2873 font-weight: 700;
2872 2874 }
2873 2875
2874 2876 div.browserblock .browser-search {
2875 2877 clear: both;
2876 2878 padding: 8px 8px 0px 5px;
2877 2879 height: 20px;
2878 2880 }
2879 2881
2880 2882 div.browserblock #node_filter_box {
2881 2883
2882 2884 }
2883 2885
2884 2886 div.browserblock .search_activate {
2885 2887 float: left
2886 2888 }
2887 2889
2888 2890 div.browserblock .add_node {
2889 2891 float: left;
2890 2892 padding-left: 5px;
2891 2893 }
2892 2894
2893 2895 div.browserblock .search_activate a:hover,div.browserblock .add_node a:hover
2894 2896 {
2895 2897 text-decoration: none !important;
2896 2898 }
2897 2899
2898 2900 div.browserblock .browser-body {
2899 2901 background: #EEE;
2900 2902 border-top: 1px solid #CCC;
2901 2903 }
2902 2904
2903 2905 table.code-browser {
2904 2906 border-collapse: collapse;
2905 2907 width: 100%;
2906 2908 }
2907 2909
2908 2910 table.code-browser tr {
2909 2911 margin: 3px;
2910 2912 }
2911 2913
2912 2914 table.code-browser thead th {
2913 2915 background-color: #EEE;
2914 2916 height: 20px;
2915 2917 font-size: 1.1em;
2916 2918 font-weight: 700;
2917 2919 text-align: left;
2918 2920 padding-left: 10px;
2919 2921 }
2920 2922
2921 2923 table.code-browser tbody td {
2922 2924 padding-left: 10px;
2923 2925 height: 20px;
2924 2926 }
2925 2927
2926 2928 table.code-browser .browser-file {
2927 2929 background: url("../images/icons/document_16.png") no-repeat scroll 3px;
2928 2930 height: 16px;
2929 2931 padding-left: 20px;
2930 2932 text-align: left;
2931 2933 }
2932 2934 .diffblock .changeset_header {
2933 2935 height: 16px;
2934 2936 }
2935 2937 .diffblock .changeset_file {
2936 2938 background: url("../images/icons/file.png") no-repeat scroll 3px;
2937 2939 text-align: left;
2938 2940 float: left;
2939 2941 padding: 2px 0px 2px 22px;
2940 2942 }
2941 2943 .diffblock .diff-menu-wrapper{
2942 2944 float: left;
2943 2945 }
2944 2946
2945 2947 .diffblock .diff-menu{
2946 2948 position: absolute;
2947 2949 background: none repeat scroll 0 0 #FFFFFF;
2948 2950 border-color: #003367 #666666 #666666;
2949 2951 border-right: 1px solid #666666;
2950 2952 border-style: solid solid solid;
2951 2953 border-width: 1px;
2952 2954 box-shadow: 2px 8px 4px rgba(0, 0, 0, 0.2);
2953 2955 margin-top:5px;
2954 2956 margin-left:1px;
2955 2957
2956 2958 }
2957 2959 .diffblock .diff-actions {
2958 2960 padding: 2px 0px 0px 2px;
2959 2961 float: left;
2960 2962 }
2961 2963 .diffblock .diff-menu ul li {
2962 2964 padding: 0px 0px 0px 0px !important;
2963 2965 }
2964 2966 .diffblock .diff-menu ul li a{
2965 2967 display: block;
2966 2968 padding: 3px 8px 3px 8px !important;
2967 2969 }
2968 2970 .diffblock .diff-menu ul li a:hover{
2969 2971 text-decoration: none;
2970 2972 background-color: #EEEEEE;
2971 2973 }
2972 2974 table.code-browser .browser-dir {
2973 2975 background: url("../images/icons/folder_16.png") no-repeat scroll 3px;
2974 2976 height: 16px;
2975 2977 padding-left: 20px;
2976 2978 text-align: left;
2977 2979 }
2978 2980
2979 2981 table.code-browser .submodule-dir {
2980 2982 background: url("../images/icons/disconnect.png") no-repeat scroll 3px;
2981 2983 height: 16px;
2982 2984 padding-left: 20px;
2983 2985 text-align: left;
2984 2986 }
2985 2987
2986 2988
2987 2989 .box .search {
2988 2990 clear: both;
2989 2991 overflow: hidden;
2990 2992 margin: 0;
2991 2993 padding: 0 20px 10px;
2992 2994 }
2993 2995
2994 2996 .box .search div.search_path {
2995 2997 background: none repeat scroll 0 0 #EEE;
2996 2998 border: 1px solid #CCC;
2997 2999 color: blue;
2998 3000 margin-bottom: 10px;
2999 3001 padding: 10px 0;
3000 3002 }
3001 3003
3002 3004 .box .search div.search_path div.link {
3003 3005 font-weight: 700;
3004 3006 margin-left: 25px;
3005 3007 }
3006 3008
3007 3009 .box .search div.search_path div.link a {
3008 3010 color: #003367;
3009 3011 cursor: pointer;
3010 3012 text-decoration: none;
3011 3013 }
3012 3014
3013 3015 #path_unlock {
3014 3016 color: red;
3015 3017 font-size: 1.2em;
3016 3018 padding-left: 4px;
3017 3019 }
3018 3020
3019 3021 .info_box span {
3020 3022 margin-left: 3px;
3021 3023 margin-right: 3px;
3022 3024 }
3023 3025
3024 3026 .info_box .rev {
3025 3027 color: #003367;
3026 3028 font-size: 1.6em;
3027 3029 font-weight: bold;
3028 3030 vertical-align: sub;
3029 3031 }
3030 3032
3031 3033 .info_box input#at_rev,.info_box input#size {
3032 3034 background: #FFF;
3033 3035 border-top: 1px solid #b3b3b3;
3034 3036 border-left: 1px solid #b3b3b3;
3035 3037 border-right: 1px solid #eaeaea;
3036 3038 border-bottom: 1px solid #eaeaea;
3037 3039 color: #000;
3038 3040 font-size: 12px;
3039 3041 margin: 0;
3040 3042 padding: 1px 5px 1px;
3041 3043 }
3042 3044
3043 3045 .info_box input#view {
3044 3046 text-align: center;
3045 3047 padding: 4px 3px 2px 2px;
3046 3048 }
3047 3049
3048 3050 .yui-overlay,.yui-panel-container {
3049 3051 visibility: hidden;
3050 3052 position: absolute;
3051 3053 z-index: 2;
3052 3054 }
3053 3055
3054 3056 #tip-box {
3055 3057 position: absolute;
3056 3058
3057 3059 background-color: #FFF;
3058 3060 border: 2px solid #003367;
3059 3061 font: 100% sans-serif;
3060 3062 width: auto;
3061 3063 opacity: 1px;
3062 3064 padding: 8px;
3063 3065
3064 3066 white-space: pre-wrap;
3065 3067 -webkit-border-radius: 8px 8px 8px 8px;
3066 3068 -khtml-border-radius: 8px 8px 8px 8px;
3067 3069 -moz-border-radius: 8px 8px 8px 8px;
3068 3070 border-radius: 8px 8px 8px 8px;
3069 3071 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
3070 3072 -moz-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
3071 3073 -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
3072 3074 }
3073 3075
3074 3076 .hl-tip-box {
3075 3077 visibility: hidden;
3076 3078 position: absolute;
3077 3079 color: #666;
3078 3080 background-color: #FFF;
3079 3081 border: 2px solid #003367;
3080 3082 font: 100% sans-serif;
3081 3083 width: auto;
3082 3084 opacity: 1px;
3083 3085 padding: 8px;
3084 3086 white-space: pre-wrap;
3085 3087 -webkit-border-radius: 8px 8px 8px 8px;
3086 3088 -khtml-border-radius: 8px 8px 8px 8px;
3087 3089 -moz-border-radius: 8px 8px 8px 8px;
3088 3090 border-radius: 8px 8px 8px 8px;
3089 3091 box-shadow: 0 2px 2px rgba(0, 0, 0, 0.6);
3090 3092 }
3091 3093
3092 3094
3093 3095 .mentions-container{
3094 3096 width: 90% !important;
3095 3097 }
3096 3098 .mentions-container .yui-ac-content{
3097 3099 width: 100% !important;
3098 3100 }
3099 3101
3100 3102 .ac {
3101 3103 vertical-align: top;
3102 3104 }
3103 3105
3104 3106 .ac .yui-ac {
3105 3107 position: inherit;
3106 3108 font-size: 100%;
3107 3109 }
3108 3110
3109 3111 .ac .perm_ac {
3110 3112 width: 20em;
3111 3113 }
3112 3114
3113 3115 .ac .yui-ac-input {
3114 3116 width: 100%;
3115 3117 }
3116 3118
3117 3119 .ac .yui-ac-container {
3118 3120 position: absolute;
3119 3121 top: 1.6em;
3120 3122 width: auto;
3121 3123 }
3122 3124
3123 3125 .ac .yui-ac-content {
3124 3126 position: absolute;
3125 3127 border: 1px solid gray;
3126 3128 background: #fff;
3127 3129 z-index: 9050;
3128 3130
3129 3131 }
3130 3132
3131 3133 .ac .yui-ac-shadow {
3132 3134 position: absolute;
3133 3135 width: 100%;
3134 3136 background: #000;
3135 3137 -moz-opacity: 0.1px;
3136 3138 opacity: .10;
3137 3139 filter: alpha(opacity = 10);
3138 3140 z-index: 9049;
3139 3141 margin: .3em;
3140 3142 }
3141 3143
3142 3144 .ac .yui-ac-content ul {
3143 3145 width: 100%;
3144 3146 margin: 0;
3145 3147 padding: 0;
3146 3148 z-index: 9050;
3147 3149 }
3148 3150
3149 3151 .ac .yui-ac-content li {
3150 3152 cursor: default;
3151 3153 white-space: nowrap;
3152 3154 margin: 0;
3153 3155 padding: 2px 5px;
3154 3156 height: 18px;
3155 3157 z-index: 9050;
3156 3158 display: block;
3157 3159 width: auto !important;
3158 3160 }
3159 3161
3160 3162 .ac .yui-ac-content li .ac-container-wrap{
3161 3163 width: auto;
3162 3164 }
3163 3165
3164 3166 .ac .yui-ac-content li.yui-ac-prehighlight {
3165 3167 background: #B3D4FF;
3166 3168 z-index: 9050;
3167 3169 }
3168 3170
3169 3171 .ac .yui-ac-content li.yui-ac-highlight {
3170 3172 background: #556CB5;
3171 3173 color: #FFF;
3172 3174 z-index: 9050;
3173 3175 }
3174 3176 .ac .yui-ac-bd{
3175 3177 z-index: 9050;
3176 3178 }
3177 3179
3178 3180 .follow {
3179 3181 background: url("../images/icons/heart_add.png") no-repeat scroll 3px;
3180 3182 height: 16px;
3181 3183 width: 20px;
3182 3184 cursor: pointer;
3183 3185 display: block;
3184 3186 float: right;
3185 3187 margin-top: 2px;
3186 3188 }
3187 3189
3188 3190 .following {
3189 3191 background: url("../images/icons/heart_delete.png") no-repeat scroll 3px;
3190 3192 height: 16px;
3191 3193 width: 20px;
3192 3194 cursor: pointer;
3193 3195 display: block;
3194 3196 float: right;
3195 3197 margin-top: 2px;
3196 3198 }
3197 3199
3198 3200 .locking_locked{
3199 3201 background: #FFF url("../images/icons/block_16.png") no-repeat scroll 3px;
3200 3202 height: 16px;
3201 3203 width: 20px;
3202 3204 cursor: pointer;
3203 3205 display: block;
3204 3206 float: right;
3205 3207 margin-top: 2px;
3206 3208 }
3207 3209
3208 3210 .locking_unlocked{
3209 3211 background: #FFF url("../images/icons/accept.png") no-repeat scroll 3px;
3210 3212 height: 16px;
3211 3213 width: 20px;
3212 3214 cursor: pointer;
3213 3215 display: block;
3214 3216 float: right;
3215 3217 margin-top: 2px;
3216 3218 }
3217 3219
3218 3220 .currently_following {
3219 3221 padding-left: 10px;
3220 3222 padding-bottom: 5px;
3221 3223 }
3222 3224
3223 3225 .add_icon {
3224 3226 background: url("../images/icons/add.png") no-repeat scroll 3px;
3225 3227 padding-left: 20px;
3226 3228 padding-top: 0px;
3227 3229 text-align: left;
3228 3230 }
3229 3231
3230 3232 .accept_icon {
3231 3233 background: url("../images/icons/accept.png") no-repeat scroll 3px;
3232 3234 padding-left: 20px;
3233 3235 padding-top: 0px;
3234 3236 text-align: left;
3235 3237 }
3236 3238
3237 3239 .edit_icon {
3238 3240 background: url("../images/icons/application_form_edit.png") no-repeat scroll 3px;
3239 3241 padding-left: 20px;
3240 3242 padding-top: 0px;
3241 3243 text-align: left;
3242 3244 }
3243 3245
3244 3246 .delete_icon {
3245 3247 background: url("../images/icons/delete.png") no-repeat scroll 3px;
3246 3248 padding-left: 20px;
3247 3249 padding-top: 0px;
3248 3250 text-align: left;
3249 3251 }
3250 3252
3251 3253 .refresh_icon {
3252 3254 background: url("../images/icons/arrow_refresh.png") no-repeat scroll
3253 3255 3px;
3254 3256 padding-left: 20px;
3255 3257 padding-top: 0px;
3256 3258 text-align: left;
3257 3259 }
3258 3260
3259 3261 .pull_icon {
3260 3262 background: url("../images/icons/connect.png") no-repeat scroll 3px;
3261 3263 padding-left: 20px;
3262 3264 padding-top: 0px;
3263 3265 text-align: left;
3264 3266 }
3265 3267
3266 3268 .rss_icon {
3267 3269 background: url("../images/icons/rss_16.png") no-repeat scroll 3px;
3268 3270 padding-left: 20px;
3269 3271 padding-top: 4px;
3270 3272 text-align: left;
3271 3273 font-size: 8px
3272 3274 }
3273 3275
3274 3276 .atom_icon {
3275 3277 background: url("../images/icons/atom.png") no-repeat scroll 3px;
3276 3278 padding-left: 20px;
3277 3279 padding-top: 4px;
3278 3280 text-align: left;
3279 3281 font-size: 8px
3280 3282 }
3281 3283
3282 3284 .archive_icon {
3283 3285 background: url("../images/icons/compress.png") no-repeat scroll 3px;
3284 3286 padding-left: 20px;
3285 3287 text-align: left;
3286 3288 padding-top: 1px;
3287 3289 }
3288 3290
3289 3291 .start_following_icon {
3290 3292 background: url("../images/icons/heart_add.png") no-repeat scroll 3px;
3291 3293 padding-left: 20px;
3292 3294 text-align: left;
3293 3295 padding-top: 0px;
3294 3296 }
3295 3297
3296 3298 .stop_following_icon {
3297 3299 background: url("../images/icons/heart_delete.png") no-repeat scroll 3px;
3298 3300 padding-left: 20px;
3299 3301 text-align: left;
3300 3302 padding-top: 0px;
3301 3303 }
3302 3304
3303 3305 .action_button {
3304 3306 border: 0;
3305 3307 display: inline;
3306 3308 }
3307 3309
3308 3310 .action_button:hover {
3309 3311 border: 0;
3310 3312 text-decoration: underline;
3311 3313 cursor: pointer;
3312 3314 }
3313 3315
3314 3316 #switch_repos {
3315 3317 position: absolute;
3316 3318 height: 25px;
3317 3319 z-index: 1;
3318 3320 }
3319 3321
3320 3322 #switch_repos select {
3321 3323 min-width: 150px;
3322 3324 max-height: 250px;
3323 3325 z-index: 1;
3324 3326 }
3325 3327
3326 3328 .breadcrumbs {
3327 3329 border: medium none;
3328 3330 color: #FFF;
3329 3331 float: left;
3330 3332 text-transform: uppercase;
3331 3333 font-weight: 700;
3332 3334 font-size: 14px;
3333 3335 margin: 0;
3334 3336 padding: 11px 0 11px 10px;
3335 3337 }
3336 3338
3337 3339 .breadcrumbs .hash {
3338 3340 text-transform: none;
3339 3341 color: #fff;
3340 3342 }
3341 3343
3342 3344 .breadcrumbs a {
3343 3345 color: #FFF;
3344 3346 }
3345 3347
3346 3348 .flash_msg {
3347 3349
3348 3350 }
3349 3351
3350 3352 .flash_msg ul {
3351 3353
3352 3354 }
3353 3355
3354 3356 .error_red {
3355 3357 color:red;
3356 3358 }
3357 3359
3358 3360 .error_msg {
3359 3361 background-color: #c43c35;
3360 3362 background-repeat: repeat-x;
3361 3363 background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35) );
3362 3364 background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
3363 3365 background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
3364 3366 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35) );
3365 3367 background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
3366 3368 background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
3367 3369 background-image: linear-gradient(top, #ee5f5b, #c43c35);
3368 3370 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b',endColorstr='#c43c35', GradientType=0 );
3369 3371 border-color: #c43c35 #c43c35 #882a25;
3370 3372 }
3371 3373
3372 3374 .warning_msg {
3373 3375 color: #404040 !important;
3374 3376 background-color: #eedc94;
3375 3377 background-repeat: repeat-x;
3376 3378 background-image: -khtml-gradient(linear, left top, left bottom, from(#fceec1), to(#eedc94) );
3377 3379 background-image: -moz-linear-gradient(top, #fceec1, #eedc94);
3378 3380 background-image: -ms-linear-gradient(top, #fceec1, #eedc94);
3379 3381 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fceec1), color-stop(100%, #eedc94) );
3380 3382 background-image: -webkit-linear-gradient(top, #fceec1, #eedc94);
3381 3383 background-image: -o-linear-gradient(top, #fceec1, #eedc94);
3382 3384 background-image: linear-gradient(top, #fceec1, #eedc94);
3383 3385 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fceec1', endColorstr='#eedc94', GradientType=0 );
3384 3386 border-color: #eedc94 #eedc94 #e4c652;
3385 3387 }
3386 3388
3387 3389 .success_msg {
3388 3390 background-color: #57a957;
3389 3391 background-repeat: repeat-x !important;
3390 3392 background-image: -khtml-gradient(linear, left top, left bottom, from(#62c462), to(#57a957) );
3391 3393 background-image: -moz-linear-gradient(top, #62c462, #57a957);
3392 3394 background-image: -ms-linear-gradient(top, #62c462, #57a957);
3393 3395 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62c462), color-stop(100%, #57a957) );
3394 3396 background-image: -webkit-linear-gradient(top, #62c462, #57a957);
3395 3397 background-image: -o-linear-gradient(top, #62c462, #57a957);
3396 3398 background-image: linear-gradient(top, #62c462, #57a957);
3397 3399 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0 );
3398 3400 border-color: #57a957 #57a957 #3d773d;
3399 3401 }
3400 3402
3401 3403 .notice_msg {
3402 3404 background-color: #339bb9;
3403 3405 background-repeat: repeat-x;
3404 3406 background-image: -khtml-gradient(linear, left top, left bottom, from(#5bc0de), to(#339bb9) );
3405 3407 background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
3406 3408 background-image: -ms-linear-gradient(top, #5bc0de, #339bb9);
3407 3409 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5bc0de), color-stop(100%, #339bb9) );
3408 3410 background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
3409 3411 background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
3410 3412 background-image: linear-gradient(top, #5bc0de, #339bb9);
3411 3413 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0 );
3412 3414 border-color: #339bb9 #339bb9 #22697d;
3413 3415 }
3414 3416
3415 3417 .success_msg,.error_msg,.notice_msg,.warning_msg {
3416 3418 font-size: 12px;
3417 3419 font-weight: 700;
3418 3420 min-height: 14px;
3419 3421 line-height: 14px;
3420 3422 margin-bottom: 10px;
3421 3423 margin-top: 0;
3422 3424 display: block;
3423 3425 overflow: auto;
3424 3426 padding: 6px 10px 6px 10px;
3425 3427 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
3426 3428 position: relative;
3427 3429 color: #FFF;
3428 3430 border-width: 1px;
3429 3431 border-style: solid;
3430 3432 -webkit-border-radius: 4px;
3431 3433 -moz-border-radius: 4px;
3432 3434 border-radius: 4px;
3433 3435 -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
3434 3436 -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
3435 3437 box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
3436 3438 }
3437 3439
3438 3440 #msg_close {
3439 3441 background: transparent url("../icons/cross_grey_small.png") no-repeat scroll 0 0;
3440 3442 cursor: pointer;
3441 3443 height: 16px;
3442 3444 position: absolute;
3443 3445 right: 5px;
3444 3446 top: 5px;
3445 3447 width: 16px;
3446 3448 }
3447 3449 div#legend_data{
3448 3450 padding-left:10px;
3449 3451 }
3450 3452 div#legend_container table{
3451 3453 border: none !important;
3452 3454 }
3453 3455 div#legend_container table,div#legend_choices table {
3454 3456 width: auto !important;
3455 3457 }
3456 3458
3457 3459 table#permissions_manage {
3458 3460 width: 0 !important;
3459 3461 }
3460 3462
3461 3463 table#permissions_manage span.private_repo_msg {
3462 3464 font-size: 0.8em;
3463 3465 opacity: 0.6px;
3464 3466 }
3465 3467
3466 3468 table#permissions_manage td.private_repo_msg {
3467 3469 font-size: 0.8em;
3468 3470 }
3469 3471
3470 3472 table#permissions_manage tr#add_perm_input td {
3471 3473 vertical-align: middle;
3472 3474 }
3473 3475
3474 3476 div.gravatar {
3475 3477 background-color: #FFF;
3476 3478 float: left;
3477 3479 margin-right: 0.7em;
3478 3480 padding: 1px 1px 1px 1px;
3479 3481 line-height:0;
3480 3482 -webkit-border-radius: 3px;
3481 3483 -khtml-border-radius: 3px;
3482 3484 -moz-border-radius: 3px;
3483 3485 border-radius: 3px;
3484 3486 }
3485 3487
3486 3488 div.gravatar img {
3487 3489 -webkit-border-radius: 2px;
3488 3490 -khtml-border-radius: 2px;
3489 3491 -moz-border-radius: 2px;
3490 3492 border-radius: 2px;
3491 3493 }
3492 3494
3493 3495 #header,#content,#footer {
3494 3496 min-width: 978px;
3495 3497 }
3496 3498
3497 3499 #content {
3498 3500 clear: both;
3499 3501 overflow: hidden;
3500 3502 padding: 54px 10px 14px 10px;
3501 3503 }
3502 3504
3503 3505 #content div.box div.title div.search {
3504 3506
3505 3507 border-left: 1px solid #316293;
3506 3508 }
3507 3509
3508 3510 #content div.box div.title div.search div.input input {
3509 3511 border: 1px solid #316293;
3510 3512 }
3511 3513
3512 3514 .ui-btn{
3513 3515 color: #515151;
3514 3516 background-color: #DADADA;
3515 3517 background-repeat: repeat-x;
3516 3518 background-image: -khtml-gradient(linear, left top, left bottom, from(#F4F4F4),to(#DADADA) );
3517 3519 background-image: -moz-linear-gradient(top, #F4F4F4, #DADADA);
3518 3520 background-image: -ms-linear-gradient(top, #F4F4F4, #DADADA);
3519 3521 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #F4F4F4),color-stop(100%, #DADADA) );
3520 3522 background-image: -webkit-linear-gradient(top, #F4F4F4, #DADADA) );
3521 3523 background-image: -o-linear-gradient(top, #F4F4F4, #DADADA) );
3522 3524 background-image: linear-gradient(top, #F4F4F4, #DADADA);
3523 3525 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F4F4F4', endColorstr='#DADADA', GradientType=0);
3524 3526
3525 3527 border-top: 1px solid #DDD;
3526 3528 border-left: 1px solid #c6c6c6;
3527 3529 border-right: 1px solid #DDD;
3528 3530 border-bottom: 1px solid #c6c6c6;
3529 3531 color: #515151;
3530 3532 outline: none;
3531 3533 margin: 0px 3px 3px 0px;
3532 3534 -webkit-border-radius: 4px 4px 4px 4px !important;
3533 3535 -khtml-border-radius: 4px 4px 4px 4px !important;
3534 3536 -moz-border-radius: 4px 4px 4px 4px !important;
3535 3537 border-radius: 4px 4px 4px 4px !important;
3536 3538 cursor: pointer !important;
3537 3539 padding: 3px 3px 3px 3px;
3538 3540 background-position: 0 -15px;
3539 3541
3540 3542 }
3541 3543 .ui-btn.xsmall{
3542 3544 padding: 1px 2px 1px 1px;
3543 3545 }
3544 3546
3545 3547 .ui-btn.large{
3546 3548 padding: 6px 12px;
3547 3549 }
3548 3550
3549 3551 .ui-btn.clone{
3550 3552 padding: 5px 2px 6px 1px;
3551 3553 margin: 0px -4px 3px 0px;
3552 3554 -webkit-border-radius: 4px 0px 0px 4px !important;
3553 3555 -khtml-border-radius: 4px 0px 0px 4px !important;
3554 3556 -moz-border-radius: 4px 0px 0px 4px !important;
3555 3557 border-radius: 4px 0px 0px 4px !important;
3556 3558 width: 100px;
3557 3559 text-align: center;
3558 3560 float: left;
3559 3561 position: absolute;
3560 3562 }
3561 3563 .ui-btn:focus {
3562 3564 outline: none;
3563 3565 }
3564 3566 .ui-btn:hover{
3565 3567 background-position: 0 0px;
3566 3568 text-decoration: none;
3567 3569 color: #515151;
3568 3570 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 0 3px #FFFFFF !important;
3569 3571 }
3570 3572
3571 3573 .ui-btn.red{
3572 3574 color:#fff;
3573 3575 background-color: #c43c35;
3574 3576 background-repeat: repeat-x;
3575 3577 background-image: -khtml-gradient(linear, left top, left bottom, from(#ee5f5b), to(#c43c35));
3576 3578 background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35);
3577 3579 background-image: -ms-linear-gradient(top, #ee5f5b, #c43c35);
3578 3580 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ee5f5b), color-stop(100%, #c43c35));
3579 3581 background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35);
3580 3582 background-image: -o-linear-gradient(top, #ee5f5b, #c43c35);
3581 3583 background-image: linear-gradient(top, #ee5f5b, #c43c35);
3582 3584 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ee5f5b', endColorstr='#c43c35', GradientType=0);
3583 3585 border-color: #c43c35 #c43c35 #882a25;
3584 3586 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
3585 3587 }
3586 3588
3587 3589
3588 3590 .ui-btn.blue{
3589 3591 color:#fff;
3590 3592 background-color: #339bb9;
3591 3593 background-repeat: repeat-x;
3592 3594 background-image: -khtml-gradient(linear, left top, left bottom, from(#5bc0de), to(#339bb9));
3593 3595 background-image: -moz-linear-gradient(top, #5bc0de, #339bb9);
3594 3596 background-image: -ms-linear-gradient(top, #5bc0de, #339bb9);
3595 3597 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #5bc0de), color-stop(100%, #339bb9));
3596 3598 background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9);
3597 3599 background-image: -o-linear-gradient(top, #5bc0de, #339bb9);
3598 3600 background-image: linear-gradient(top, #5bc0de, #339bb9);
3599 3601 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#5bc0de', endColorstr='#339bb9', GradientType=0);
3600 3602 border-color: #339bb9 #339bb9 #22697d;
3601 3603 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
3602 3604 }
3603 3605
3604 3606 .ui-btn.green{
3605 3607 background-color: #57a957;
3606 3608 background-repeat: repeat-x;
3607 3609 background-image: -khtml-gradient(linear, left top, left bottom, from(#62c462), to(#57a957));
3608 3610 background-image: -moz-linear-gradient(top, #62c462, #57a957);
3609 3611 background-image: -ms-linear-gradient(top, #62c462, #57a957);
3610 3612 background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62c462), color-stop(100%, #57a957));
3611 3613 background-image: -webkit-linear-gradient(top, #62c462, #57a957);
3612 3614 background-image: -o-linear-gradient(top, #62c462, #57a957);
3613 3615 background-image: linear-gradient(top, #62c462, #57a957);
3614 3616 filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#62c462', endColorstr='#57a957', GradientType=0);
3615 3617 border-color: #57a957 #57a957 #3d773d;
3616 3618 border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);
3617 3619 }
3618 3620
3619 3621 .ui-btn.blue.hidden{
3620 3622 display: none;
3621 3623 }
3622 3624
3623 3625 .ui-btn.active{
3624 3626 font-weight: bold;
3625 3627 }
3626 3628
3627 3629 ins,div.options a:hover {
3628 3630 text-decoration: none;
3629 3631 }
3630 3632
3631 3633 img,
3632 3634 #header #header-inner #quick li a:hover span.normal,
3633 3635 #header #header-inner #quick li ul li.last,
3634 3636 #content div.box div.form div.fields div.field div.textarea table td table td a,
3635 3637 #clone_url,
3636 3638 #clone_url_id
3637 3639 {
3638 3640 border: none;
3639 3641 }
3640 3642
3641 3643 img.icon,.right .merge img {
3642 3644 vertical-align: bottom;
3643 3645 }
3644 3646
3645 3647 #header ul#logged-user,#content div.box div.title ul.links,
3646 3648 #content div.box div.message div.dismiss,
3647 3649 #content div.box div.traffic div.legend ul
3648 3650 {
3649 3651 float: right;
3650 3652 margin: 0;
3651 3653 padding: 0;
3652 3654 }
3653 3655
3654 3656 #header #header-inner #home,#header #header-inner #logo,
3655 3657 #content div.box ul.left,#content div.box ol.left,
3656 3658 #content div.box div.pagination-left,div#commit_history,
3657 3659 div#legend_data,div#legend_container,div#legend_choices
3658 3660 {
3659 3661 float: left;
3660 3662 }
3661 3663
3662 3664 #header #header-inner #quick li:hover ul ul,
3663 3665 #header #header-inner #quick li:hover ul ul ul,
3664 3666 #header #header-inner #quick li:hover ul ul ul ul,
3665 3667 #content #left #menu ul.closed,#content #left #menu li ul.collapsed,.yui-tt-shadow
3666 3668 {
3667 3669 display: none;
3668 3670 }
3669 3671
3670 3672 #header #header-inner #quick li:hover ul,#header #header-inner #quick li li:hover ul,#header #header-inner #quick li li li:hover ul,#header #header-inner #quick li li li li:hover ul,#content #left #menu ul.opened,#content #left #menu li ul.expanded
3671 3673 {
3672 3674 display: block;
3673 3675 }
3674 3676
3675 3677 #content div.graph {
3676 3678 padding: 0 10px 10px;
3677 3679 }
3678 3680
3679 3681 #content div.box div.title ul.links li a:hover,#content div.box div.title ul.links li.ui-tabs-selected a
3680 3682 {
3681 3683 color: #bfe3ff;
3682 3684 }
3683 3685
3684 3686 #content div.box ol.lower-roman,#content div.box ol.upper-roman,#content div.box ol.lower-alpha,#content div.box ol.upper-alpha,#content div.box ol.decimal
3685 3687 {
3686 3688 margin: 10px 24px 10px 44px;
3687 3689 }
3688 3690
3689 3691 #content div.box div.form,#content div.box div.table,#content div.box div.traffic
3690 3692 {
3691 3693 clear: both;
3692 3694 overflow: hidden;
3693 3695 margin: 0;
3694 3696 padding: 0 20px 10px;
3695 3697 }
3696 3698
3697 3699 #content div.box div.form div.fields,#login div.form,#login div.form div.fields,#register div.form,#register div.form div.fields
3698 3700 {
3699 3701 clear: both;
3700 3702 overflow: hidden;
3701 3703 margin: 0;
3702 3704 padding: 0;
3703 3705 }
3704 3706
3705 3707 #content div.box div.form div.fields div.field div.label span,#login div.form div.fields div.field div.label span,#register div.form div.fields div.field div.label span
3706 3708 {
3707 3709 height: 1%;
3708 3710 display: block;
3709 3711 color: #363636;
3710 3712 margin: 0;
3711 3713 padding: 2px 0 0;
3712 3714 }
3713 3715
3714 3716 #content div.box div.form div.fields div.field div.input input.error,#login div.form div.fields div.field div.input input.error,#register div.form div.fields div.field div.input input.error
3715 3717 {
3716 3718 background: #FBE3E4;
3717 3719 border-top: 1px solid #e1b2b3;
3718 3720 border-left: 1px solid #e1b2b3;
3719 3721 border-right: 1px solid #FBC2C4;
3720 3722 border-bottom: 1px solid #FBC2C4;
3721 3723 }
3722 3724
3723 3725 #content div.box div.form div.fields div.field div.input input.success,#login div.form div.fields div.field div.input input.success,#register div.form div.fields div.field div.input input.success
3724 3726 {
3725 3727 background: #E6EFC2;
3726 3728 border-top: 1px solid #cebb98;
3727 3729 border-left: 1px solid #cebb98;
3728 3730 border-right: 1px solid #c6d880;
3729 3731 border-bottom: 1px solid #c6d880;
3730 3732 }
3731 3733
3732 3734 #content div.box-left div.form div.fields div.field div.textarea,#content div.box-right div.form div.fields div.field div.textarea,#content div.box div.form div.fields div.field div.select select,#content div.box table th.selected input,#content div.box table td.selected input
3733 3735 {
3734 3736 margin: 0;
3735 3737 }
3736 3738
3737 3739 #content div.box-left div.form div.fields div.field div.select,#content div.box-left div.form div.fields div.field div.checkboxes,#content div.box-left div.form div.fields div.field div.radios,#content div.box-right div.form div.fields div.field div.select,#content div.box-right div.form div.fields div.field div.checkboxes,#content div.box-right div.form div.fields div.field div.radios
3738 3740 {
3739 3741 margin: 0 0 0 0px !important;
3740 3742 padding: 0;
3741 3743 }
3742 3744
3743 3745 #content div.box div.form div.fields div.field div.select,#content div.box div.form div.fields div.field div.checkboxes,#content div.box div.form div.fields div.field div.radios
3744 3746 {
3745 3747 margin: 0 0 0 200px;
3746 3748 padding: 0;
3747 3749 }
3748 3750
3749 3751 #content div.box div.form div.fields div.field div.select a:hover,#content div.box div.form div.fields div.field div.select a.ui-selectmenu:hover,#content div.box div.action a:hover
3750 3752 {
3751 3753 color: #000;
3752 3754 text-decoration: none;
3753 3755 }
3754 3756
3755 3757 #content div.box div.form div.fields div.field div.select a.ui-selectmenu-focus,#content div.box div.action a.ui-selectmenu-focus
3756 3758 {
3757 3759 border: 1px solid #666;
3758 3760 }
3759 3761
3760 3762 #content div.box div.form div.fields div.field div.checkboxes div.checkbox,#content div.box div.form div.fields div.field div.radios div.radio
3761 3763 {
3762 3764 clear: both;
3763 3765 overflow: hidden;
3764 3766 margin: 0;
3765 3767 padding: 8px 0 2px;
3766 3768 }
3767 3769
3768 3770 #content div.box div.form div.fields div.field div.checkboxes div.checkbox input,#content div.box div.form div.fields div.field div.radios div.radio input
3769 3771 {
3770 3772 float: left;
3771 3773 margin: 0;
3772 3774 }
3773 3775
3774 3776 #content div.box div.form div.fields div.field div.checkboxes div.checkbox label,#content div.box div.form div.fields div.field div.radios div.radio label
3775 3777 {
3776 3778 height: 1%;
3777 3779 display: block;
3778 3780 float: left;
3779 3781 margin: 2px 0 0 4px;
3780 3782 }
3781 3783
3782 3784 div.form div.fields div.field div.button input,
3783 3785 #content div.box div.form div.fields div.buttons input
3784 3786 div.form div.fields div.buttons input,
3785 3787 #content div.box div.action div.button input {
3786 3788 /*color: #000;*/
3787 3789 font-size: 11px;
3788 3790 font-weight: 700;
3789 3791 margin: 0;
3790 3792 }
3791 3793
3792 3794 input.ui-button {
3793 3795 background: #e5e3e3 url("../images/button.png") repeat-x;
3794 3796 border-top: 1px solid #DDD;
3795 3797 border-left: 1px solid #c6c6c6;
3796 3798 border-right: 1px solid #DDD;
3797 3799 border-bottom: 1px solid #c6c6c6;
3798 3800 color: #515151 !important;
3799 3801 outline: none;
3800 3802 margin: 0;
3801 3803 padding: 6px 12px;
3802 3804 -webkit-border-radius: 4px 4px 4px 4px;
3803 3805 -khtml-border-radius: 4px 4px 4px 4px;
3804 3806 -moz-border-radius: 4px 4px 4px 4px;
3805 3807 border-radius: 4px 4px 4px 4px;
3806 3808 box-shadow: 0 1px 0 #ececec;
3807 3809 cursor: pointer;
3808 3810 }
3809 3811
3810 3812 input.ui-button:hover {
3811 3813 background: #b4b4b4 url("../images/button_selected.png") repeat-x;
3812 3814 border-top: 1px solid #ccc;
3813 3815 border-left: 1px solid #bebebe;
3814 3816 border-right: 1px solid #b1b1b1;
3815 3817 border-bottom: 1px solid #afafaf;
3816 3818 }
3817 3819
3818 3820 div.form div.fields div.field div.highlight,#content div.box div.form div.fields div.buttons div.highlight
3819 3821 {
3820 3822 display: inline;
3821 3823 }
3822 3824
3823 3825 #content div.box div.form div.fields div.buttons,div.form div.fields div.buttons
3824 3826 {
3825 3827 margin: 10px 0 0 200px;
3826 3828 padding: 0;
3827 3829 }
3828 3830
3829 3831 #content div.box-left div.form div.fields div.buttons,#content div.box-right div.form div.fields div.buttons,div.box-left div.form div.fields div.buttons,div.box-right div.form div.fields div.buttons
3830 3832 {
3831 3833 margin: 10px 0 0;
3832 3834 }
3833 3835
3834 3836 #content div.box table td.user,#content div.box table td.address {
3835 3837 width: 10%;
3836 3838 text-align: center;
3837 3839 }
3838 3840
3839 3841 #content div.box div.action div.button,#login div.form div.fields div.field div.input div.link,#register div.form div.fields div.field div.input div.link
3840 3842 {
3841 3843 text-align: right;
3842 3844 margin: 6px 0 0;
3843 3845 padding: 0;
3844 3846 }
3845 3847
3846 3848 #content div.box div.action div.button input.ui-state-hover,#login div.form div.fields div.buttons input.ui-state-hover,#register div.form div.fields div.buttons input.ui-state-hover
3847 3849 {
3848 3850 background: #b4b4b4 url("../images/button_selected.png") repeat-x;
3849 3851 border-top: 1px solid #ccc;
3850 3852 border-left: 1px solid #bebebe;
3851 3853 border-right: 1px solid #b1b1b1;
3852 3854 border-bottom: 1px solid #afafaf;
3853 3855 color: #515151;
3854 3856 margin: 0;
3855 3857 padding: 6px 12px;
3856 3858 }
3857 3859
3858 3860 #content div.box div.pagination div.results,#content div.box div.pagination-wh div.results
3859 3861 {
3860 3862 text-align: left;
3861 3863 float: left;
3862 3864 margin: 0;
3863 3865 padding: 0;
3864 3866 }
3865 3867
3866 3868 #content div.box div.pagination div.results span,#content div.box div.pagination-wh div.results span
3867 3869 {
3868 3870 height: 1%;
3869 3871 display: block;
3870 3872 float: left;
3871 3873 background: #ebebeb url("../images/pager.png") repeat-x;
3872 3874 border-top: 1px solid #dedede;
3873 3875 border-left: 1px solid #cfcfcf;
3874 3876 border-right: 1px solid #c4c4c4;
3875 3877 border-bottom: 1px solid #c4c4c4;
3876 3878 color: #4A4A4A;
3877 3879 font-weight: 700;
3878 3880 margin: 0;
3879 3881 padding: 6px 8px;
3880 3882 }
3881 3883
3882 3884 #content div.box div.pagination ul.pager li.disabled,#content div.box div.pagination-wh a.disabled
3883 3885 {
3884 3886 color: #B4B4B4;
3885 3887 padding: 6px;
3886 3888 }
3887 3889
3888 3890 #login,#register {
3889 3891 width: 520px;
3890 3892 margin: 10% auto 0;
3891 3893 padding: 0;
3892 3894 }
3893 3895
3894 3896 #login div.color,#register div.color {
3895 3897 clear: both;
3896 3898 overflow: hidden;
3897 3899 background: #FFF;
3898 3900 margin: 10px auto 0;
3899 3901 padding: 3px 3px 3px 0;
3900 3902 }
3901 3903
3902 3904 #login div.color a,#register div.color a {
3903 3905 width: 20px;
3904 3906 height: 20px;
3905 3907 display: block;
3906 3908 float: left;
3907 3909 margin: 0 0 0 3px;
3908 3910 padding: 0;
3909 3911 }
3910 3912
3911 3913 #login div.title h5,#register div.title h5 {
3912 3914 color: #fff;
3913 3915 margin: 10px;
3914 3916 padding: 0;
3915 3917 }
3916 3918
3917 3919 #login div.form div.fields div.field,#register div.form div.fields div.field
3918 3920 {
3919 3921 clear: both;
3920 3922 overflow: hidden;
3921 3923 margin: 0;
3922 3924 padding: 0 0 10px;
3923 3925 }
3924 3926
3925 3927 #login div.form div.fields div.field span.error-message,#register div.form div.fields div.field span.error-message
3926 3928 {
3927 3929 height: 1%;
3928 3930 display: block;
3929 3931 color: red;
3930 3932 margin: 8px 0 0;
3931 3933 padding: 0;
3932 3934 max-width: 320px;
3933 3935 }
3934 3936
3935 3937 #login div.form div.fields div.field div.label label,#register div.form div.fields div.field div.label label
3936 3938 {
3937 3939 color: #000;
3938 3940 font-weight: 700;
3939 3941 }
3940 3942
3941 3943 #login div.form div.fields div.field div.input,#register div.form div.fields div.field div.input
3942 3944 {
3943 3945 float: left;
3944 3946 margin: 0;
3945 3947 padding: 0;
3946 3948 }
3947 3949
3948 3950 #login div.form div.fields div.field div.checkbox,#register div.form div.fields div.field div.checkbox
3949 3951 {
3950 3952 margin: 0 0 0 184px;
3951 3953 padding: 0;
3952 3954 }
3953 3955
3954 3956 #login div.form div.fields div.field div.checkbox label,#register div.form div.fields div.field div.checkbox label
3955 3957 {
3956 3958 color: #565656;
3957 3959 font-weight: 700;
3958 3960 }
3959 3961
3960 3962 #login div.form div.fields div.buttons input,#register div.form div.fields div.buttons input
3961 3963 {
3962 3964 color: #000;
3963 3965 font-size: 1em;
3964 3966 font-weight: 700;
3965 3967 margin: 0;
3966 3968 }
3967 3969
3968 3970 #changeset_content .container .wrapper,#graph_content .container .wrapper
3969 3971 {
3970 3972 width: 600px;
3971 3973 }
3972 3974
3973 3975 #changeset_content .container .left {
3974 3976 float: left;
3975 3977 width: 75%;
3976 3978 padding-left: 5px;
3977 3979 }
3978 3980
3979 3981 #changeset_content .container .left .date,.ac .match {
3980 3982 font-weight: 700;
3981 3983 padding-top: 5px;
3982 3984 padding-bottom: 5px;
3983 3985 }
3984 3986
3985 3987 div#legend_container table td,div#legend_choices table td {
3986 3988 border: none !important;
3987 3989 height: 20px !important;
3988 3990 padding: 0 !important;
3989 3991 }
3990 3992
3991 3993 .q_filter_box {
3992 3994 -webkit-box-shadow: rgba(0,0,0,0.07) 0 1px 2px inset;
3993 3995 -webkit-border-radius: 4px;
3994 3996 -moz-border-radius: 4px;
3995 3997 border-radius: 4px;
3996 3998 border: 0 none;
3997 3999 color: #AAAAAA;
3998 4000 margin-bottom: -4px;
3999 4001 margin-top: -4px;
4000 4002 padding-left: 3px;
4001 4003 }
4002 4004
4003 4005 #node_filter {
4004 4006 border: 0px solid #545454;
4005 4007 color: #AAAAAA;
4006 4008 padding-left: 3px;
4007 4009 }
4008 4010
4009 4011
4010 4012 .group_members_wrap{
4011 4013 min-height: 85px;
4012 4014 padding-left: 20px;
4013 4015 }
4014 4016
4015 4017 .group_members .group_member{
4016 4018 height: 30px;
4017 4019 padding:0px 0px 0px 0px;
4018 4020 }
4019 4021
4020 4022 .reviewers_member{
4021 4023 height: 15px;
4022 4024 padding:0px 0px 0px 10px;
4023 4025 }
4024 4026
4025 4027 .emails_wrap{
4026 4028 padding: 0px 20px;
4027 4029 }
4028 4030
4029 4031 .emails_wrap .email_entry{
4030 4032 height: 30px;
4031 4033 padding:0px 0px 0px 10px;
4032 4034 }
4033 4035 .emails_wrap .email_entry .email{
4034 4036 float: left
4035 4037 }
4036 4038 .emails_wrap .email_entry .email_action{
4037 4039 float: left
4038 4040 }
4039 4041
4040 4042 .ips_wrap{
4041 4043 padding: 0px 20px;
4042 4044 }
4043 4045
4044 4046 .ips_wrap .ip_entry{
4045 4047 height: 30px;
4046 4048 padding:0px 0px 0px 10px;
4047 4049 }
4048 4050 .ips_wrap .ip_entry .ip{
4049 4051 float: left
4050 4052 }
4051 4053 .ips_wrap .ip_entry .ip_action{
4052 4054 float: left
4053 4055 }
4054 4056
4055 4057
4056 4058 /*README STYLE*/
4057 4059
4058 4060 div.readme {
4059 4061 padding:0px;
4060 4062 }
4061 4063
4062 4064 div.readme h2 {
4063 4065 font-weight: normal;
4064 4066 }
4065 4067
4066 4068 div.readme .readme_box {
4067 4069 background-color: #fafafa;
4068 4070 }
4069 4071
4070 4072 div.readme .readme_box {
4071 4073 clear:both;
4072 4074 overflow:hidden;
4073 4075 margin:0;
4074 4076 padding:0 20px 10px;
4075 4077 }
4076 4078
4077 4079 div.readme .readme_box h1, div.readme .readme_box h2, div.readme .readme_box h3, div.readme .readme_box h4, div.readme .readme_box h5, div.readme .readme_box h6 {
4078 4080 border-bottom: 0 !important;
4079 4081 margin: 0 !important;
4080 4082 padding: 0 !important;
4081 4083 line-height: 1.5em !important;
4082 4084 }
4083 4085
4084 4086
4085 4087 div.readme .readme_box h1:first-child {
4086 4088 padding-top: .25em !important;
4087 4089 }
4088 4090
4089 4091 div.readme .readme_box h2, div.readme .readme_box h3 {
4090 4092 margin: 1em 0 !important;
4091 4093 }
4092 4094
4093 4095 div.readme .readme_box h2 {
4094 4096 margin-top: 1.5em !important;
4095 4097 border-top: 4px solid #e0e0e0 !important;
4096 4098 padding-top: .5em !important;
4097 4099 }
4098 4100
4099 4101 div.readme .readme_box p {
4100 4102 color: black !important;
4101 4103 margin: 1em 0 !important;
4102 4104 line-height: 1.5em !important;
4103 4105 }
4104 4106
4105 4107 div.readme .readme_box ul {
4106 4108 list-style: disc !important;
4107 4109 margin: 1em 0 1em 2em !important;
4108 4110 }
4109 4111
4110 4112 div.readme .readme_box ol {
4111 4113 list-style: decimal;
4112 4114 margin: 1em 0 1em 2em !important;
4113 4115 }
4114 4116
4115 4117 div.readme .readme_box pre, code {
4116 4118 font: 12px "Bitstream Vera Sans Mono","Courier",monospace;
4117 4119 }
4118 4120
4119 4121 div.readme .readme_box code {
4120 4122 font-size: 12px !important;
4121 4123 background-color: ghostWhite !important;
4122 4124 color: #444 !important;
4123 4125 padding: 0 .2em !important;
4124 4126 border: 1px solid #dedede !important;
4125 4127 }
4126 4128
4127 4129 div.readme .readme_box pre code {
4128 4130 padding: 0 !important;
4129 4131 font-size: 12px !important;
4130 4132 background-color: #eee !important;
4131 4133 border: none !important;
4132 4134 }
4133 4135
4134 4136 div.readme .readme_box pre {
4135 4137 margin: 1em 0;
4136 4138 font-size: 12px;
4137 4139 background-color: #eee;
4138 4140 border: 1px solid #ddd;
4139 4141 padding: 5px;
4140 4142 color: #444;
4141 4143 overflow: auto;
4142 4144 -webkit-box-shadow: rgba(0,0,0,0.07) 0 1px 2px inset;
4143 4145 -webkit-border-radius: 3px;
4144 4146 -moz-border-radius: 3px;
4145 4147 border-radius: 3px;
4146 4148 }
4147 4149
4148 4150 div.readme .readme_box table {
4149 4151 display: table;
4150 4152 border-collapse: separate;
4151 4153 border-spacing: 2px;
4152 4154 border-color: gray;
4153 4155 width: auto !important;
4154 4156 }
4155 4157
4156 4158
4157 4159 /** RST STYLE **/
4158 4160
4159 4161
4160 4162 div.rst-block {
4161 4163 padding:0px;
4162 4164 }
4163 4165
4164 4166 div.rst-block h2 {
4165 4167 font-weight: normal;
4166 4168 }
4167 4169
4168 4170 div.rst-block {
4169 4171 background-color: #fafafa;
4170 4172 }
4171 4173
4172 4174 div.rst-block {
4173 4175 clear:both;
4174 4176 overflow:hidden;
4175 4177 margin:0;
4176 4178 padding:0 20px 10px;
4177 4179 }
4178 4180
4179 4181 div.rst-block h1, div.rst-block h2, div.rst-block h3, div.rst-block h4, div.rst-block h5, div.rst-block h6 {
4180 4182 border-bottom: 0 !important;
4181 4183 margin: 0 !important;
4182 4184 padding: 0 !important;
4183 4185 line-height: 1.5em !important;
4184 4186 }
4185 4187
4186 4188
4187 4189 div.rst-block h1:first-child {
4188 4190 padding-top: .25em !important;
4189 4191 }
4190 4192
4191 4193 div.rst-block h2, div.rst-block h3 {
4192 4194 margin: 1em 0 !important;
4193 4195 }
4194 4196
4195 4197 div.rst-block h2 {
4196 4198 margin-top: 1.5em !important;
4197 4199 border-top: 4px solid #e0e0e0 !important;
4198 4200 padding-top: .5em !important;
4199 4201 }
4200 4202
4201 4203 div.rst-block p {
4202 4204 color: black !important;
4203 4205 margin: 1em 0 !important;
4204 4206 line-height: 1.5em !important;
4205 4207 }
4206 4208
4207 4209 div.rst-block ul {
4208 4210 list-style: disc !important;
4209 4211 margin: 1em 0 1em 2em !important;
4210 4212 }
4211 4213
4212 4214 div.rst-block ol {
4213 4215 list-style: decimal;
4214 4216 margin: 1em 0 1em 2em !important;
4215 4217 }
4216 4218
4217 4219 div.rst-block pre, code {
4218 4220 font: 12px "Bitstream Vera Sans Mono","Courier",monospace;
4219 4221 }
4220 4222
4221 4223 div.rst-block code {
4222 4224 font-size: 12px !important;
4223 4225 background-color: ghostWhite !important;
4224 4226 color: #444 !important;
4225 4227 padding: 0 .2em !important;
4226 4228 border: 1px solid #dedede !important;
4227 4229 }
4228 4230
4229 4231 div.rst-block pre code {
4230 4232 padding: 0 !important;
4231 4233 font-size: 12px !important;
4232 4234 background-color: #eee !important;
4233 4235 border: none !important;
4234 4236 }
4235 4237
4236 4238 div.rst-block pre {
4237 4239 margin: 1em 0;
4238 4240 font-size: 12px;
4239 4241 background-color: #eee;
4240 4242 border: 1px solid #ddd;
4241 4243 padding: 5px;
4242 4244 color: #444;
4243 4245 overflow: auto;
4244 4246 -webkit-box-shadow: rgba(0,0,0,0.07) 0 1px 2px inset;
4245 4247 -webkit-border-radius: 3px;
4246 4248 -moz-border-radius: 3px;
4247 4249 border-radius: 3px;
4248 4250 }
4249 4251
4250 4252
4251 4253 /** comment main **/
4252 4254 .comments {
4253 4255 padding:10px 20px;
4254 4256 }
4255 4257
4256 4258 .comments .comment {
4257 4259 border: 1px solid #ddd;
4258 4260 margin-top: 10px;
4259 4261 -webkit-border-radius: 4px;
4260 4262 -moz-border-radius: 4px;
4261 4263 border-radius: 4px;
4262 4264 }
4263 4265
4264 4266 .comments .comment .meta {
4265 4267 background: #f8f8f8;
4266 4268 padding: 4px;
4267 4269 border-bottom: 1px solid #ddd;
4268 4270 height: 18px;
4269 4271 }
4270 4272
4271 4273 .comments .comment .meta img {
4272 4274 vertical-align: middle;
4273 4275 }
4274 4276
4275 4277 .comments .comment .meta .user {
4276 4278 font-weight: bold;
4277 4279 float: left;
4278 4280 padding: 4px 2px 2px 2px;
4279 4281 }
4280 4282
4281 4283 .comments .comment .meta .date {
4282 4284 float: left;
4283 4285 padding:4px 4px 0px 4px;
4284 4286 }
4285 4287
4286 4288 .comments .comment .text {
4287 4289 background-color: #FAFAFA;
4288 4290 }
4289 4291 .comment .text div.rst-block p {
4290 4292 margin: 0.5em 0px !important;
4291 4293 }
4292 4294
4293 4295 .comments .comments-number{
4294 4296 padding:0px 0px 10px 0px;
4295 4297 font-weight: bold;
4296 4298 color: #666;
4297 4299 font-size: 16px;
4298 4300 }
4299 4301
4300 4302 /** comment form **/
4301 4303
4302 4304 .status-block{
4303 4305 height:80px;
4304 4306 clear:both
4305 4307 }
4306 4308
4307 4309 .comment-form .clearfix{
4308 4310 background: #EEE;
4309 4311 -webkit-border-radius: 4px;
4310 4312 -moz-border-radius: 4px;
4311 4313 border-radius: 4px;
4312 4314 padding: 10px;
4313 4315 }
4314 4316
4315 4317 div.comment-form {
4316 4318 margin-top: 20px;
4317 4319 }
4318 4320
4319 4321 .comment-form strong {
4320 4322 display: block;
4321 4323 margin-bottom: 15px;
4322 4324 }
4323 4325
4324 4326 .comment-form textarea {
4325 4327 width: 100%;
4326 4328 height: 100px;
4327 4329 font-family: 'Monaco', 'Courier', 'Courier New', monospace;
4328 4330 }
4329 4331
4330 4332 form.comment-form {
4331 4333 margin-top: 10px;
4332 4334 margin-left: 10px;
4333 4335 }
4334 4336
4335 4337 .comment-form-submit {
4336 4338 margin-top: 5px;
4337 4339 margin-left: 525px;
4338 4340 }
4339 4341
4340 4342 .file-comments {
4341 4343 display: none;
4342 4344 }
4343 4345
4344 4346 .comment-form .comment {
4345 4347 margin-left: 10px;
4346 4348 }
4347 4349
4348 4350 .comment-form .comment-help{
4349 4351 padding: 0px 0px 5px 0px;
4350 4352 color: #666;
4351 4353 }
4352 4354
4353 4355 .comment-form .comment-button{
4354 4356 padding-top:5px;
4355 4357 }
4356 4358
4357 4359 .add-another-button {
4358 4360 margin-left: 10px;
4359 4361 margin-top: 10px;
4360 4362 margin-bottom: 10px;
4361 4363 }
4362 4364
4363 4365 .comment .buttons {
4364 4366 float: right;
4365 4367 padding:2px 2px 0px 0px;
4366 4368 }
4367 4369
4368 4370
4369 4371 .show-inline-comments{
4370 4372 position: relative;
4371 4373 top:1px
4372 4374 }
4373 4375
4374 4376 /** comment inline form **/
4375 4377 .comment-inline-form .overlay{
4376 4378 display: none;
4377 4379 }
4378 4380 .comment-inline-form .overlay.submitting{
4379 4381 display:block;
4380 4382 background: none repeat scroll 0 0 white;
4381 4383 font-size: 16px;
4382 4384 opacity: 0.5;
4383 4385 position: absolute;
4384 4386 text-align: center;
4385 4387 vertical-align: top;
4386 4388
4387 4389 }
4388 4390 .comment-inline-form .overlay.submitting .overlay-text{
4389 4391 width:100%;
4390 4392 margin-top:5%;
4391 4393 }
4392 4394
4393 4395 .comment-inline-form .clearfix{
4394 4396 background: #EEE;
4395 4397 -webkit-border-radius: 4px;
4396 4398 -moz-border-radius: 4px;
4397 4399 border-radius: 4px;
4398 4400 padding: 5px;
4399 4401 }
4400 4402
4401 4403 div.comment-inline-form {
4402 4404 padding:4px 0px 6px 0px;
4403 4405 }
4404 4406
4405 4407
4406 4408 tr.hl-comment{
4407 4409 /*
4408 4410 background-color: #FFFFCC !important;
4409 4411 */
4410 4412 }
4411 4413
4412 4414 /*
4413 4415 tr.hl-comment pre {
4414 4416 border-top: 2px solid #FFEE33;
4415 4417 border-left: 2px solid #FFEE33;
4416 4418 border-right: 2px solid #FFEE33;
4417 4419 }
4418 4420 */
4419 4421
4420 4422 .comment-inline-form strong {
4421 4423 display: block;
4422 4424 margin-bottom: 15px;
4423 4425 }
4424 4426
4425 4427 .comment-inline-form textarea {
4426 4428 width: 100%;
4427 4429 height: 100px;
4428 4430 font-family: 'Monaco', 'Courier', 'Courier New', monospace;
4429 4431 }
4430 4432
4431 4433 form.comment-inline-form {
4432 4434 margin-top: 10px;
4433 4435 margin-left: 10px;
4434 4436 }
4435 4437
4436 4438 .comment-inline-form-submit {
4437 4439 margin-top: 5px;
4438 4440 margin-left: 525px;
4439 4441 }
4440 4442
4441 4443 .file-comments {
4442 4444 display: none;
4443 4445 }
4444 4446
4445 4447 .comment-inline-form .comment {
4446 4448 margin-left: 10px;
4447 4449 }
4448 4450
4449 4451 .comment-inline-form .comment-help{
4450 4452 padding: 0px 0px 2px 0px;
4451 4453 color: #666666;
4452 4454 font-size: 10px;
4453 4455 }
4454 4456
4455 4457 .comment-inline-form .comment-button{
4456 4458 padding-top:5px;
4457 4459 }
4458 4460
4459 4461 /** comment inline **/
4460 4462 .inline-comments {
4461 4463 padding:10px 20px;
4462 4464 }
4463 4465
4464 4466 .inline-comments div.rst-block {
4465 4467 clear:both;
4466 4468 overflow:hidden;
4467 4469 margin:0;
4468 4470 padding:0 20px 0px;
4469 4471 }
4470 4472 .inline-comments .comment {
4471 4473 border: 1px solid #ddd;
4472 4474 -webkit-border-radius: 4px;
4473 4475 -moz-border-radius: 4px;
4474 4476 border-radius: 4px;
4475 4477 margin: 3px 3px 5px 5px;
4476 4478 background-color: #FAFAFA;
4477 4479 }
4478 4480 .inline-comments .add-comment {
4479 4481 padding: 2px 4px 8px 5px;
4480 4482 }
4481 4483
4482 4484 .inline-comments .comment-wrapp{
4483 4485 padding:1px;
4484 4486 }
4485 4487 .inline-comments .comment .meta {
4486 4488 background: #f8f8f8;
4487 4489 padding: 4px;
4488 4490 border-bottom: 1px solid #ddd;
4489 4491 height: 20px;
4490 4492 }
4491 4493
4492 4494 .inline-comments .comment .meta img {
4493 4495 vertical-align: middle;
4494 4496 }
4495 4497
4496 4498 .inline-comments .comment .meta .user {
4497 4499 font-weight: bold;
4498 4500 float:left;
4499 4501 padding: 3px;
4500 4502 }
4501 4503
4502 4504 .inline-comments .comment .meta .date {
4503 4505 float:left;
4504 4506 padding: 3px;
4505 4507 }
4506 4508
4507 4509 .inline-comments .comment .text {
4508 4510 background-color: #FAFAFA;
4509 4511 }
4510 4512
4511 4513 .inline-comments .comments-number{
4512 4514 padding:0px 0px 10px 0px;
4513 4515 font-weight: bold;
4514 4516 color: #666;
4515 4517 font-size: 16px;
4516 4518 }
4517 4519 .inline-comments-button .add-comment{
4518 4520 margin:2px 0px 8px 5px !important
4519 4521 }
4520 4522
4521 4523
4522 4524 .notification-paginator{
4523 4525 padding: 0px 0px 4px 16px;
4524 4526 float: left;
4525 4527 }
4526 4528
4527 4529 .notifications{
4528 4530 border-radius: 4px 4px 4px 4px;
4529 4531 -webkit-border-radius: 4px;
4530 4532 -moz-border-radius: 4px;
4531 4533 float: right;
4532 4534 margin: 20px 0px 0px 0px;
4533 4535 position: absolute;
4534 4536 text-align: center;
4535 4537 width: 26px;
4536 4538 z-index: 1000;
4537 4539 }
4538 4540 .notifications a{
4539 4541 color:#888 !important;
4540 4542 display: block;
4541 4543 font-size: 10px;
4542 4544 background-color: #DEDEDE !important;
4543 4545 border-radius: 2px !important;
4544 4546 -webkit-border-radius: 2px !important;
4545 4547 -moz-border-radius: 2px !important;
4546 4548 }
4547 4549 .notifications a:hover{
4548 4550 text-decoration: none !important;
4549 4551 background-color: #EEEFFF !important;
4550 4552 }
4551 4553 .notification-header{
4552 4554 padding-top:6px;
4553 4555 }
4554 4556 .notification-header .desc{
4555 4557 font-size: 16px;
4556 4558 height: 24px;
4557 4559 float: left
4558 4560 }
4559 4561 .notification-list .container.unread{
4560 4562 background: none repeat scroll 0 0 rgba(255, 255, 180, 0.6);
4561 4563 }
4562 4564 .notification-header .gravatar{
4563 4565 background: none repeat scroll 0 0 transparent;
4564 4566 padding: 0px 0px 0px 8px;
4565 4567 }
4566 4568 .notification-list .container .notification-header .desc{
4567 4569 font-weight: bold;
4568 4570 font-size: 17px;
4569 4571 }
4570 4572 .notification-table{
4571 4573 border: 1px solid #ccc;
4572 4574 -webkit-border-radius: 6px 6px 6px 6px;
4573 4575 -moz-border-radius: 6px 6px 6px 6px;
4574 4576 border-radius: 6px 6px 6px 6px;
4575 4577 clear: both;
4576 4578 margin: 0px 20px 0px 20px;
4577 4579 }
4578 4580 .notification-header .delete-notifications{
4579 4581 float: right;
4580 4582 padding-top: 8px;
4581 4583 cursor: pointer;
4582 4584 }
4583 4585 .notification-header .read-notifications{
4584 4586 float: right;
4585 4587 padding-top: 8px;
4586 4588 cursor: pointer;
4587 4589 }
4588 4590 .notification-subject{
4589 4591 clear:both;
4590 4592 border-bottom: 1px solid #eee;
4591 4593 padding:5px 0px 5px 38px;
4592 4594 }
4593 4595
4594 4596 .notification-body{
4595 4597 clear:both;
4596 4598 margin: 34px 2px 2px 8px
4597 4599 }
4598 4600
4599 4601 /****
4600 4602 PULL REQUESTS
4601 4603 *****/
4602 4604 .pullrequests_section_head {
4603 4605 padding:10px 10px 10px 0px;
4604 4606 font-size:16px;
4605 4607 font-weight: bold;
4606 4608 }
4607 4609
4608 4610 /****
4609 4611 PERMS
4610 4612 *****/
4611 4613 #perms .perms_section_head {
4612 4614 padding:10px 10px 10px 0px;
4613 4615 font-size:16px;
4614 4616 font-weight: bold;
4615 4617 }
4616 4618
4617 4619 #perms .perm_tag{
4618 4620 padding: 1px 3px 1px 3px;
4619 4621 font-size: 10px;
4620 4622 font-weight: bold;
4621 4623 text-transform: uppercase;
4622 4624 white-space: nowrap;
4623 4625 -webkit-border-radius: 3px;
4624 4626 -moz-border-radius: 3px;
4625 4627 border-radius: 3px;
4626 4628 }
4627 4629
4628 4630 #perms .perm_tag.admin{
4629 4631 background-color: #B94A48;
4630 4632 color: #ffffff;
4631 4633 }
4632 4634
4633 4635 #perms .perm_tag.write{
4634 4636 background-color: #B94A48;
4635 4637 color: #ffffff;
4636 4638 }
4637 4639
4638 4640 #perms .perm_tag.read{
4639 4641 background-color: #468847;
4640 4642 color: #ffffff;
4641 4643 }
4642 4644
4643 4645 #perms .perm_tag.none{
4644 4646 background-color: #bfbfbf;
4645 4647 color: #ffffff;
4646 4648 }
4647 4649
4648 4650 .perm-gravatar{
4649 4651 vertical-align:middle;
4650 4652 padding:2px;
4651 4653 }
4652 4654 .perm-gravatar-ac{
4653 4655 vertical-align:middle;
4654 4656 padding:2px;
4655 4657 width: 14px;
4656 4658 height: 14px;
4657 4659 }
4658 4660
4659 4661 /*****************************************************************************
4660 4662 DIFFS CSS
4661 4663 ******************************************************************************/
4662 4664
4663 4665 div.diffblock {
4664 4666 overflow: auto;
4665 4667 padding: 0px;
4666 4668 border: 1px solid #ccc;
4667 4669 background: #f8f8f8;
4668 4670 font-size: 100%;
4669 4671 line-height: 100%;
4670 4672 /* new */
4671 4673 line-height: 125%;
4672 4674 -webkit-border-radius: 6px 6px 0px 0px;
4673 4675 -moz-border-radius: 6px 6px 0px 0px;
4674 4676 border-radius: 6px 6px 0px 0px;
4675 4677 }
4676 4678 div.diffblock.margined{
4677 4679 margin: 0px 20px 0px 20px;
4678 4680 }
4679 4681 div.diffblock .code-header{
4680 4682 border-bottom: 1px solid #CCCCCC;
4681 4683 background: #EEEEEE;
4682 4684 padding:10px 0 10px 0;
4683 4685 height: 14px;
4684 4686 }
4685 4687
4686 4688 div.diffblock .code-header.banner{
4687 4689 border-bottom: 1px solid #CCCCCC;
4688 4690 background: #EEEEEE;
4689 4691 height: 14px;
4690 4692 margin: 0px 95px 0px 95px;
4691 4693 padding: 3px 3px 11px 3px;
4692 4694 }
4693 4695
4694 4696 div.diffblock .code-header.cv{
4695 4697 height: 34px;
4696 4698 }
4697 4699 div.diffblock .code-header-title{
4698 4700 padding: 0px 0px 10px 5px !important;
4699 4701 margin: 0 !important;
4700 4702 }
4701 4703 div.diffblock .code-header .hash{
4702 4704 float: left;
4703 4705 padding: 2px 0 0 2px;
4704 4706 }
4705 4707 div.diffblock .code-header .date{
4706 4708 float:left;
4707 4709 text-transform: uppercase;
4708 4710 padding: 2px 0px 0px 2px;
4709 4711 }
4710 4712 div.diffblock .code-header div{
4711 4713 margin-left:4px;
4712 4714 font-weight: bold;
4713 4715 font-size: 14px;
4714 4716 }
4715 4717
4716 4718 div.diffblock .parents {
4717 4719 float: left;
4718 4720 height: 26px;
4719 4721 width:100px;
4720 4722 font-size: 10px;
4721 4723 font-weight: 400;
4722 4724 vertical-align: middle;
4723 4725 padding: 0px 2px 2px 2px;
4724 4726 background-color:#eeeeee;
4725 4727 border-bottom: 1px solid #CCCCCC;
4726 4728 }
4727 4729
4728 4730 div.diffblock .children {
4729 4731 float: right;
4730 4732 height: 26px;
4731 4733 width:100px;
4732 4734 font-size: 10px;
4733 4735 font-weight: 400;
4734 4736 vertical-align: middle;
4735 4737 text-align: right;
4736 4738 padding: 0px 2px 2px 2px;
4737 4739 background-color:#eeeeee;
4738 4740 border-bottom: 1px solid #CCCCCC;
4739 4741 }
4740 4742
4741 4743 div.diffblock .code-body{
4742 4744 background: #FFFFFF;
4743 4745 }
4744 4746 div.diffblock pre.raw{
4745 4747 background: #FFFFFF;
4746 4748 color:#000000;
4747 4749 }
4748 4750 table.code-difftable{
4749 4751 border-collapse: collapse;
4750 4752 width: 99%;
4751 4753 }
4752 4754 table.code-difftable td {
4753 4755 padding: 0 !important;
4754 4756 background: none !important;
4755 4757 border:0 !important;
4756 4758 vertical-align: none !important;
4757 4759 }
4758 4760 table.code-difftable .context{
4759 4761 background:none repeat scroll 0 0 #DDE7EF;
4760 4762 }
4761 4763 table.code-difftable .add{
4762 4764 background:none repeat scroll 0 0 #DDFFDD;
4763 4765 }
4764 4766 table.code-difftable .add ins{
4765 4767 background:none repeat scroll 0 0 #AAFFAA;
4766 4768 text-decoration:none;
4767 4769 }
4768 4770 table.code-difftable .del{
4769 4771 background:none repeat scroll 0 0 #FFDDDD;
4770 4772 }
4771 4773 table.code-difftable .del del{
4772 4774 background:none repeat scroll 0 0 #FFAAAA;
4773 4775 text-decoration:none;
4774 4776 }
4775 4777
4776 4778 /** LINE NUMBERS **/
4777 4779 table.code-difftable .lineno{
4778 4780
4779 4781 padding-left:2px;
4780 4782 padding-right:2px;
4781 4783 text-align:right;
4782 4784 width:32px;
4783 4785 -moz-user-select:none;
4784 4786 -webkit-user-select: none;
4785 4787 border-right: 1px solid #CCC !important;
4786 4788 border-left: 0px solid #CCC !important;
4787 4789 border-top: 0px solid #CCC !important;
4788 4790 border-bottom: none !important;
4789 4791 vertical-align: middle !important;
4790 4792
4791 4793 }
4792 4794 table.code-difftable .lineno.new {
4793 4795 }
4794 4796 table.code-difftable .lineno.old {
4795 4797 }
4796 4798 table.code-difftable .lineno a{
4797 4799 color:#747474 !important;
4798 4800 font:11px "Bitstream Vera Sans Mono",Monaco,"Courier New",Courier,monospace !important;
4799 4801 letter-spacing:-1px;
4800 4802 text-align:right;
4801 4803 padding-right: 2px;
4802 4804 cursor: pointer;
4803 4805 display: block;
4804 4806 width: 32px;
4805 4807 }
4806 4808
4807 4809 table.code-difftable .lineno-inline{
4808 4810 background:none repeat scroll 0 0 #FFF !important;
4809 4811 padding-left:2px;
4810 4812 padding-right:2px;
4811 4813 text-align:right;
4812 4814 width:30px;
4813 4815 -moz-user-select:none;
4814 4816 -webkit-user-select: none;
4815 4817 }
4816 4818
4817 4819 /** CODE **/
4818 4820 table.code-difftable .code {
4819 4821 display: block;
4820 4822 width: 100%;
4821 4823 }
4822 4824 table.code-difftable .code td{
4823 4825 margin:0;
4824 4826 padding:0;
4825 4827 }
4826 4828 table.code-difftable .code pre{
4827 4829 margin:0;
4828 4830 padding:0;
4829 4831 height: 17px;
4830 4832 line-height: 17px;
4831 4833 }
4832 4834
4833 4835
4834 4836 .diffblock.margined.comm .line .code:hover{
4835 4837 background-color:#FFFFCC !important;
4836 4838 cursor: pointer !important;
4837 4839 background-image:url("../images/icons/comment_add.png") !important;
4838 4840 background-repeat:no-repeat !important;
4839 4841 background-position: right !important;
4840 4842 background-position: 0% 50% !important;
4841 4843 }
4842 4844 .diffblock.margined.comm .line .code.no-comment:hover{
4843 4845 background-image: none !important;
4844 4846 cursor: auto !important;
4845 4847 background-color: inherit !important;
4846 4848
4847 4849 }
@@ -1,210 +1,228 b''
1 1 <%inherit file="/base/base.html"/>
2 2
3 3 <%def name="title()">
4 4 ${c.repo_name} ${_('Pull request #%s') % c.pull_request.pull_request_id}
5 5 </%def>
6 6
7 7 <%def name="breadcrumbs_links()">
8 8 ${h.link_to(_(u'Home'),h.url('/'))}
9 9 &raquo;
10 10 ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))}
11 11 &raquo;
12 12 ${_('Pull request #%s') % c.pull_request.pull_request_id}
13 13 </%def>
14 14
15 15 <%def name="main()">
16 16
17 17 <div class="box">
18 18 <!-- box / title -->
19 19 <div class="title">
20 20 ${self.breadcrumbs()}
21 21 </div>
22 22 %if c.pull_request.is_closed():
23 23 <div style="padding:10px; font-size:22px;width:100%;text-align: center; color:#88D882">${_('Closed %s') % (h.age(c.pull_request.updated_on))} ${_('with status %s') % h.changeset_status_lbl(c.current_changeset_status)}</div>
24 24 %endif
25 25 <h3>${_('Title')}: ${c.pull_request.title}</h3>
26 26
27 27 <div class="form">
28 28 <div id="summary" class="fields">
29 29 <div class="field">
30 30 <div class="label-summary">
31 31 <label>${_('Status')}:</label>
32 32 </div>
33 33 <div class="input">
34 34 <div class="changeset-status-container" style="float:none;clear:both">
35 35 %if c.current_changeset_status:
36 36 <div title="${_('Pull request status')}" class="changeset-status-lbl">[${h.changeset_status_lbl(c.current_changeset_status)}]</div>
37 37 <div class="changeset-status-ico" style="padding:1px 4px"><img src="${h.url('/images/icons/flag_status_%s.png' % c.current_changeset_status)}" /></div>
38 38 %endif
39 39 </div>
40 40 </div>
41 41 </div>
42 42 <div class="field">
43 43 <div class="label-summary">
44 44 <label>${_('Still not reviewed by')}:</label>
45 45 </div>
46 46 <div class="input">
47 47 % if len(c.pull_request_pending_reviewers) > 0:
48 48 <div class="tooltip" title="${h.tooltip(','.join([x.username for x in c.pull_request_pending_reviewers]))}">${ungettext('%d reviewer', '%d reviewers',len(c.pull_request_pending_reviewers)) % len(c.pull_request_pending_reviewers)}</div>
49 49 %else:
50 50 <div>${_('pull request was reviewed by all reviewers')}</div>
51 51 %endif
52 52 </div>
53 53 </div>
54 <div class="field">
55 <div class="label-summary">
56 <label>${_('Origin repository')}:</label>
57 </div>
58 <div class="input">
59 <div>
60 ##%if h.is_hg(c.pull_request.org_repo):
61 ## <img class="icon" title="${_('Mercurial repository')}" alt="${_('Mercurial repository')}" src="${h.url('/images/icons/hgicon.png')}"/>
62 ##%elif h.is_git(c.pull_request.org_repo):
63 ## <img class="icon" title="${_('Git repository')}" alt="${_('Git repository')}" src="${h.url('/images/icons/giticon.png')}"/>
64 ##%endif
65 <span class="spantag">${c.pull_request.org_ref_parts[0]}</span>
66 :
67 <span class="spantag">${c.pull_request.org_ref_parts[1]}</span>
68 <span>${c.pull_request.org_repo.clone_url()}</span>
69 </div>
70 </div>
71 </div>
54 72 </div>
55 73 </div>
56 74 <div style="white-space:pre-wrap;padding:3px 3px 5px 20px">${h.literal(c.pull_request.description)}</div>
57 75 <div style="padding:4px 4px 10px 20px">
58 76 <div>${_('Created on')}: ${h.fmt_date(c.pull_request.created_on)}</div>
59 77 </div>
60 78
61 79 <div style="overflow: auto;">
62 80 ##DIFF
63 81 <div class="table" style="float:left;clear:none">
64 82 <div id="body" class="diffblock">
65 83 <div style="white-space:pre-wrap;padding:5px">${_('Compare view')}</div>
66 84 </div>
67 85 <div id="changeset_compare_view_content">
68 86 ##CS
69 87 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}</div>
70 88 <%include file="/compare/compare_cs.html" />
71 89
72 90 ## FILES
73 91 <div style="font-size:1.1em;font-weight: bold;clear:both;padding-top:10px">
74 92
75 93 % if c.limited_diff:
76 94 ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)}
77 95 % else:
78 96 ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}:
79 97 %endif
80 98
81 99 </div>
82 100 <div class="cs_files">
83 101 %if not c.files:
84 102 <span class="empty_data">${_('No files')}</span>
85 103 %endif
86 104 %for fid, change, f, stat in c.files:
87 105 <div class="cs_${change}">
88 106 <div class="node">${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid))}</div>
89 107 <div class="changes">${h.fancy_file_stats(stat)}</div>
90 108 </div>
91 109 %endfor
92 110 </div>
93 111 % if c.limited_diff:
94 112 <h5>${_('Changeset was too big and was cut off...')}</h5>
95 113 % endif
96 114 </div>
97 115 </div>
98 116 ## REVIEWERS
99 117 <div style="float:left; border-left:1px dashed #eee">
100 118 <h4>${_('Pull request reviewers')}</h4>
101 119 <div id="reviewers" style="padding:0px 0px 5px 10px">
102 120 ## members goes here !
103 121 <div class="group_members_wrap" style="min-height:45px">
104 122 <ul id="review_members" class="group_members">
105 123 %for member,status in c.pull_request_reviewers:
106 124 <li id="reviewer_${member.user_id}">
107 125 <div class="reviewers_member">
108 126 <div style="float:left;padding:0px 3px 0px 0px" class="tooltip" title="${h.tooltip(h.changeset_status_lbl(status[0][1].status if status else 'not_reviewed'))}">
109 127 <img src="${h.url(str('/images/icons/flag_status_%s.png' % (status[0][1].status if status else 'not_reviewed')))}"/>
110 128 </div>
111 129 <div class="gravatar"><img alt="gravatar" src="${h.gravatar_url(member.email,14)}"/> </div>
112 130 <div style="float:left">${member.full_name} (${_('owner') if c.pull_request.user_id == member.user_id else _('reviewer')})</div>
113 131 <input type="hidden" value="${member.user_id}" name="review_members" />
114 132 %if not c.pull_request.is_closed() and (h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.user_id == c.rhodecode_user.user_id):
115 133 <span class="delete_icon action_button" onclick="removeReviewer(${member.user_id})"></span>
116 134 %endif
117 135 </div>
118 136 </li>
119 137 %endfor
120 138 </ul>
121 139 </div>
122 140 %if not c.pull_request.is_closed():
123 141 <div class='ac'>
124 142 %if h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.author.user_id == c.rhodecode_user.user_id:
125 143 <div class="reviewer_ac">
126 144 ${h.text('user', class_='yui-ac-input')}
127 145 <span class="help-block">${_('Add reviewer to this pull request.')}</span>
128 146 <div id="reviewers_container"></div>
129 147 </div>
130 148 <div style="padding:0px 10px">
131 149 <span id="update_pull_request" class="ui-btn xsmall">${_('save')}</span>
132 150 </div>
133 151 %endif
134 152 </div>
135 153 %endif
136 154 </div>
137 155 </div>
138 156 </div>
139 157 <script>
140 158 var _USERS_AC_DATA = ${c.users_array|n};
141 159 var _GROUPS_AC_DATA = ${c.users_groups_array|n};
142 160 AJAX_COMMENT_URL = "${url('pullrequest_comment',repo_name=c.repo_name,pull_request_id=c.pull_request.pull_request_id)}";
143 161 AJAX_COMMENT_DELETE_URL = "${url('pullrequest_comment_delete',repo_name=c.repo_name,comment_id='__COMMENT_ID__')}";
144 162 AJAX_UPDATE_PULLREQUEST = "${url('pullrequest_update',repo_name=c.repo_name,pull_request_id=c.pull_request.pull_request_id)}"
145 163 </script>
146 164
147 165 ## diff block
148 166 <%namespace name="diff_block" file="/changeset/diff_block.html"/>
149 167 %for fid, change, f, stat in c.files:
150 168 ${diff_block.diff_block_simple([c.changes[fid]])}
151 169 %endfor
152 170 % if c.limited_diff:
153 171 <h4>${_('Changeset was too big and was cut off...')}</h4>
154 172 % endif
155 173
156 174
157 175 ## template for inline comment form
158 176 <%namespace name="comment" file="/changeset/changeset_file_comment.html"/>
159 177 ${comment.comment_inline_form()}
160 178
161 179 ## render comments and inlines
162 180 ${comment.generate_comments()}
163 181
164 182 % if not c.pull_request.is_closed():
165 183 ## main comment form and it status
166 184 ${comment.comments(h.url('pullrequest_comment', repo_name=c.repo_name,
167 185 pull_request_id=c.pull_request.pull_request_id),
168 186 c.current_changeset_status,
169 187 close_btn=True, change_status=c.allowed_to_change_status)}
170 188 %endif
171 189
172 190 <script type="text/javascript">
173 191 YUE.onDOMReady(function(){
174 192 PullRequestAutoComplete('user', 'reviewers_container', _USERS_AC_DATA, _GROUPS_AC_DATA);
175 193
176 194 YUE.on(YUQ('.show-inline-comments'),'change',function(e){
177 195 var show = 'none';
178 196 var target = e.currentTarget;
179 197 if(target.checked){
180 198 var show = ''
181 199 }
182 200 var boxid = YUD.getAttribute(target,'id_for');
183 201 var comments = YUQ('#{0} .inline-comments'.format(boxid));
184 202 for(c in comments){
185 203 YUD.setStyle(comments[c],'display',show);
186 204 }
187 205 var btns = YUQ('#{0} .inline-comments-button'.format(boxid));
188 206 for(c in btns){
189 207 YUD.setStyle(btns[c],'display',show);
190 208 }
191 209 })
192 210
193 211 YUE.on(YUQ('.line'),'click',function(e){
194 212 var tr = e.currentTarget;
195 213 injectInlineForm(tr);
196 214 });
197 215
198 216 // inject comments into they proper positions
199 217 var file_comments = YUQ('.inline-comment-placeholder');
200 218 renderInlineComments(file_comments);
201 219
202 220 YUE.on(YUD.get('update_pull_request'),'click',function(e){
203 221 updateReviewers();
204 222 })
205 223 })
206 224 </script>
207 225
208 226 </div>
209 227
210 228 </%def>
General Comments 0
You need to be logged in to leave comments. Login now