Browse Source

Signed-off-by: alan <547533434@qq.com>

master
alan 8 years ago
parent
commit
0647ea63c8
  1. 320
      public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css
  2. 328
      public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css
  3. 216
      public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css
  4. 308
      public/statistics/trustie2/gitstats.css
  5. 38
      public/statistics/trustie2/index.html
  6. 648
      public/statistics/trustie2/sortable.js
  7. 5550
      public/stylesheets/application.css
  8. 12
      public/stylesheets/bootstrap/bootstrap-theme.min.css
  9. 12
      public/stylesheets/bootstrap/bootstrap.min.css
  10. 220
      public/stylesheets/bootstrap_custom.css
  11. 130
      public/stylesheets/buglist-div-use.css
  12. 146
      public/stylesheets/buglist-ichart.css
  13. 144
      public/stylesheets/buglist.css
  14. 104
      public/stylesheets/context_menu.css
  15. 18
      public/stylesheets/context_menu_rtl.css
  16. 924
      public/stylesheets/hubspot/messenger-theme-flat.css
  17. 992
      public/stylesheets/hubspot/messenger-theme-future.css
  18. 202
      public/stylesheets/hubspot/messenger.css
  19. 10
      public/stylesheets/jquery/jquery-ui-1.9.2.css
  20. 200
      public/stylesheets/jstoolbar.css
  21. 188
      public/stylesheets/rtl.css
  22. 208
      public/stylesheets/scm.css
  23. 82
      public/stylesheets/sec-analysis.css
  24. 2
      public/themes/README
  25. 22
      public/themes/redpenny-master/README.md
  26. 676
      public/themes/redpenny-master/stylesheets/font/fontawesome-webfont.svg
  27. 12
      script/about
  28. 12
      script/rails
  29. 22
      test/fixtures/activities.yml
  30. 18
      test/fixtures/applied_projects.yml
  31. 22
      test/fixtures/apply_project_masters.yml
  32. 18
      test/fixtures/attachmentstypes.yml
  33. 22
      test/fixtures/bug_to_osps.yml
  34. 26
      test/fixtures/contesting_softapplications.yml
  35. 34
      test/fixtures/contestnotifications.yml
  36. 18
      test/fixtures/course_infos.yml
  37. 30
      test/fixtures/course_statuses.yml
  38. 2
      test/fixtures/files/japanese-utf-8.txt
  39. 22
      test/fixtures/forums.yml
  40. 18
      test/fixtures/homework_users.yml
  41. 18
      test/fixtures/join_in_contests.yml
  42. 22
      test/fixtures/journal_replies.yml
  43. 44
      test/fixtures/memos.yml
  44. 22
      test/fixtures/no_uses.yml
  45. 26
      test/fixtures/notificationcomments.yml
  46. 14
      test/fixtures/open_source_projects.yml
  47. 22
      test/fixtures/relative_memo_to_open_source_projects.yml
  48. 22
      test/fixtures/relative_memos.yml
  49. 18
      test/fixtures/schools.yml
  50. 34
      test/fixtures/softapplications.yml
  51. 76
      test/fixtures/user_extensions.yml
  52. 54
      test/fixtures/user_score_details.yml
  53. 14
      test/functional/applied_project_controller_test.rb
  54. 98
      test/functional/apply_project_masters_controller_test.rb
  55. 14
      test/functional/attachment_type_edit_controller_test.rb
  56. 98
      test/functional/contestnotifications_controller_test.rb
  57. 98
      test/functional/forums_controller_test.rb
  58. 22
      test/functional/memos_controller_test.rb
  59. 98
      test/functional/no_uses_controller_test.rb
  60. 14
      test/functional/notificationcomments_controller_test.rb
  61. 98
      test/functional/open_source_projects_controller_test.rb
  62. 14
      test/functional/school_controller_test.rb
  63. 98
      test/functional/softapplications_controller_test.rb
  64. 26
      test/functional/test_controller_test.rb
  65. 14
      test/functional/user_score_controller_test.rb
  66. 14
      test/functional/zipdown_controller_test.rb
  67. 24
      test/performance/browsing_test.rb
  68. 14
      test/unit/applied_project_test.rb
  69. 14
      test/unit/apply_project_master_test.rb
  70. 14
      test/unit/attachmentstype_test.rb
  71. 14
      test/unit/bug_to_osp_test.rb
  72. 14
      test/unit/contesting_softapplication_test.rb
  73. 14
      test/unit/contestnotification_test.rb
  74. 14
      test/unit/course_infos_test.rb
  75. 14
      test/unit/course_status_test.rb
  76. 14
      test/unit/forum_test.rb
  77. 8
      test/unit/helpers/applied_project_helper_test.rb
  78. 8
      test/unit/helpers/apply_project_masters_helper_test.rb
  79. 8
      test/unit/helpers/attachment_type_edit_helper_test.rb
  80. 8
      test/unit/helpers/contestnotifications_helper_test.rb
  81. 24
      test/unit/helpers/courses_helper_test.rb
  82. 8
      test/unit/helpers/forums_helper_test.rb
  83. 8
      test/unit/helpers/memos_helper_test.rb
  84. 8
      test/unit/helpers/no_uses_helper_test.rb
  85. 8
      test/unit/helpers/notificationcomments_helper_test.rb
  86. 8
      test/unit/helpers/open_source_projects_helper_test.rb
  87. 8
      test/unit/helpers/school_helper_test.rb
  88. 8
      test/unit/helpers/softapplications_helper_test.rb
  89. 8
      test/unit/helpers/stores_helper_test.rb
  90. 8
      test/unit/helpers/test_helper_test.rb
  91. 8
      test/unit/helpers/zipdown_helper_test.rb
  92. 14
      test/unit/join_in_contest_test.rb
  93. 14
      test/unit/journal_reply_test.rb
  94. 34
      test/unit/memo_test.rb
  95. 14
      test/unit/no_use_test.rb
  96. 14
      test/unit/notificationcomments_test.rb
  97. 14
      test/unit/open_source_project_test.rb
  98. 14
      test/unit/relative_memo_test.rb
  99. 14
      test/unit/relative_memo_to_open_source_project_test.rb
  100. 14
      test/unit/school_test.rb

320
public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css

@ -1,160 +1,160 @@
.overlay_mac_os_x_dialog {
background-color: #FF7224;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.mac_os_x_dialog_nw {
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
width:16px;
height:16px;
}
.mac_os_x_dialog_n {
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
height:18px;
}
.mac_os_x_dialog_ne {
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
width:16px;
height:16px;
}
.mac_os_x_dialog_w {
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
width:16px;
}
.mac_os_x_dialog_e {
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
width:16px;
}
.mac_os_x_dialog_sw {
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
width:31px;
height:40px;
}
.mac_os_x_dialog_s {
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
height:40px;
}
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
width:31px;
height:40px;
}
.mac_os_x_dialog_sizer {
cursor:se-resize;
}
.mac_os_x_dialog_close {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:25px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_minimize {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:45px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_maximize {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:65px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_title {
float:left;
height:14px;
font-family: Tahoma, Arial, sans-serif;
font-size:12px;
text-align:center;
margin-top:6px;
width:100%;
color:#000;
}
.mac_os_x_dialog_content {
overflow:auto;
color: #222;
font-family: Tahoma, Arial, sans-serif;
font-size: 10px;
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
}
.mac_os_x_dialog_buttons {
text-align: center;
}
/* FOR IE */
* html .mac_os_x_dialog_nw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_ne {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_w {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_e {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_sw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
}
* html .mac_os_x_dialog_s {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_se {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
}
* html .mac_os_x_dialog_sizer {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
}
.overlay_mac_os_x_dialog {
background-color: #FF7224;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.mac_os_x_dialog_nw {
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
width:16px;
height:16px;
}
.mac_os_x_dialog_n {
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
height:18px;
}
.mac_os_x_dialog_ne {
background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
width:16px;
height:16px;
}
.mac_os_x_dialog_w {
background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
width:16px;
}
.mac_os_x_dialog_e {
background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
width:16px;
}
.mac_os_x_dialog_sw {
background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
width:31px;
height:40px;
}
.mac_os_x_dialog_s {
background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
height:40px;
}
.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
width:31px;
height:40px;
}
.mac_os_x_dialog_sizer {
cursor:se-resize;
}
.mac_os_x_dialog_close {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:25px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_minimize {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:45px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_maximize {
width: 19px;
height: 19px;
background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
position:absolute;
top:12px;
left:65px;
cursor:pointer;
z-index:1000;
}
.mac_os_x_dialog_title {
float:left;
height:14px;
font-family: Tahoma, Arial, sans-serif;
font-size:12px;
text-align:center;
margin-top:6px;
width:100%;
color:#000;
}
.mac_os_x_dialog_content {
overflow:auto;
color: #222;
font-family: Tahoma, Arial, sans-serif;
font-size: 10px;
background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
}
.mac_os_x_dialog_buttons {
text-align: center;
}
/* FOR IE */
* html .mac_os_x_dialog_nw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_ne {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_w {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_e {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_sw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
}
* html .mac_os_x_dialog_s {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
}
* html .mac_os_x_dialog_se {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
}
* html .mac_os_x_dialog_sizer {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
}

328
public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css

@ -1,164 +1,164 @@
.overlay_nuncio img { border: none; }
.overlay_nuncio {
background-color: #666666;
}
.nuncio_nw {
width: 12px;
height: 28px;
background: url(nuncio/top_left.png) no-repeat;
}
.nuncio_n {
background: url(nuncio/top_mid.png) repeat-x;
height: 28px;
}
.nuncio_ne {
width: 21px;
height: 28px;
background: url(nuncio/top_right.png) no-repeat;
}
.nuncio_e {
width: 21px;
background: url(nuncio/center_right.png) repeat-y top right;
}
.nuncio_w {
width: 12px;
background: url(nuncio/center_left.png) repeat-y top left;
}
.nuncio_sw {
width: 12px;
height: 18px;
background: url(nuncio/bottom_left.png) no-repeat;
}
.nuncio_s {
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
height: 18px;
}
.nuncio_se, .nuncio_sizer {
width: 21px;
height: 18px;
background: url(nuncio/bottom_right.png) no-repeat;
}
.nuncio_close {
width: 14px;
height: 14px;
background: url(nuncio/close.png) no-repeat;
position:absolute;
top:10px;
right:22px;
cursor:pointer;
z-index:2000;
}
.nuncio_minimize {
width: 14px;
height: 15px;
background: url(nuncio/minimize.png) no-repeat;
position:absolute;
top:10px;
right:40px;
cursor:pointer;
z-index:2000;
}
.nuncio_title {
float:left;
font-size:11px;
font-weight: bold;
font-style: italic;
color: #fff;
width: 100%
}
.nuncio_content {
background: url(nuncio/overlay.png) repeat;
overflow:auto;
color: #ddd;
font-family: Tahoma, Arial, "sans-serif";
font-size: 10px;
}
.nuncio_sizer {
cursor:se-resize;
}
.top_draggable, .bottom_draggable {
cursor:move
}
/* FOR IE */
* html .nuncio_nw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
}
* html .nuncio_n {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
}
* html .nuncio_ne {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
}
* html .nuncio_w {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
}
* html .nuncio_e {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
}
* html .nuncio_sw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
}
* html .nuncio_s {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
}
* html .nuncio_se {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
}
* html .nuncio_sizer {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
}
* html .nuncio_close {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
}
* html .nuncio_minimize {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
}
.overlay_nuncio img { border: none; }
.overlay_nuncio {
background-color: #666666;
}
.nuncio_nw {
width: 12px;
height: 28px;
background: url(nuncio/top_left.png) no-repeat;
}
.nuncio_n {
background: url(nuncio/top_mid.png) repeat-x;
height: 28px;
}
.nuncio_ne {
width: 21px;
height: 28px;
background: url(nuncio/top_right.png) no-repeat;
}
.nuncio_e {
width: 21px;
background: url(nuncio/center_right.png) repeat-y top right;
}
.nuncio_w {
width: 12px;
background: url(nuncio/center_left.png) repeat-y top left;
}
.nuncio_sw {
width: 12px;
height: 18px;
background: url(nuncio/bottom_left.png) no-repeat;
}
.nuncio_s {
background: url(nuncio/bottom_mid.png) repeat-x 0 0;
height: 18px;
}
.nuncio_se, .nuncio_sizer {
width: 21px;
height: 18px;
background: url(nuncio/bottom_right.png) no-repeat;
}
.nuncio_close {
width: 14px;
height: 14px;
background: url(nuncio/close.png) no-repeat;
position:absolute;
top:10px;
right:22px;
cursor:pointer;
z-index:2000;
}
.nuncio_minimize {
width: 14px;
height: 15px;
background: url(nuncio/minimize.png) no-repeat;
position:absolute;
top:10px;
right:40px;
cursor:pointer;
z-index:2000;
}
.nuncio_title {
float:left;
font-size:11px;
font-weight: bold;
font-style: italic;
color: #fff;
width: 100%
}
.nuncio_content {
background: url(nuncio/overlay.png) repeat;
overflow:auto;
color: #ddd;
font-family: Tahoma, Arial, "sans-serif";
font-size: 10px;
}
.nuncio_sizer {
cursor:se-resize;
}
.top_draggable, .bottom_draggable {
cursor:move
}
/* FOR IE */
* html .nuncio_nw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
}
* html .nuncio_n {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
}
* html .nuncio_ne {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
}
* html .nuncio_w {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
}
* html .nuncio_e {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
}
* html .nuncio_sw {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
}
* html .nuncio_s {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
}
* html .nuncio_se {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
}
* html .nuncio_sizer {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
}
* html .nuncio_close {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
}
* html .nuncio_minimize {
background-color: transparent;
background-image: none;
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
}

216
public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css

@ -1,108 +1,108 @@
.overlay_spread {
background-color: #85BBEF;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.spread_nw {
background: transparent url(spread/left-top.gif) no-repeat 0 0;
width:10px;
height:25px;
}
.spread_n {
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
height:25px;
}
.spread_ne {
background: transparent url(spread/right-top.gif) no-repeat 0 0;
width:10px;
height:25px;
}
.spread_w {
background: transparent url(spread/frame-left.gif) repeat-y top left;
width:7px;
}
.spread_e {
background: transparent url(spread/frame-right.gif) repeat-y top right;
width:7px;
}
.spread_sw {
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
width:7px;
height:7px;
}
.spread_s {
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
height:7px;
}
.spread_se, .spread_sizer {
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
width:7px;
height:7px;
}
.spread_sizer {
cursor:se-resize;
}
.spread_close {
width: 23px;
height: 23px;
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:11px;
cursor:pointer;
z-index:1000;
}
.spread_minimize {
width: 23px;
height: 23px;
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:55px;
cursor:pointer;
z-index:1000;
}
.spread_maximize {
width: 23px;
height: 23px;
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:33px;
cursor:pointer;
z-index:1000;
}
.spread_title {
float:left;
height:14px;
font-family: Tahoma, Arial, sans-serif;
font-size:14px;
font-weight:bold;
text-align:left;
margin-top:2px;
width:100%;
color:#E47211;
}
.spread_content {
overflow:auto;
color: #222;
font-family: Tahoma, Arial, sans-serif;
font-size: 10px;
background:#A9EA00;
}
.overlay_spread {
background-color: #85BBEF;
filter:alpha(opacity=60);
-moz-opacity: 0.6;
opacity: 0.6;
}
.spread_nw {
background: transparent url(spread/left-top.gif) no-repeat 0 0;
width:10px;
height:25px;
}
.spread_n {
background: transparent url(spread/top-middle.gif) repeat-x 0 0;
height:25px;
}
.spread_ne {
background: transparent url(spread/right-top.gif) no-repeat 0 0;
width:10px;
height:25px;
}
.spread_w {
background: transparent url(spread/frame-left.gif) repeat-y top left;
width:7px;
}
.spread_e {
background: transparent url(spread/frame-right.gif) repeat-y top right;
width:7px;
}
.spread_sw {
background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
width:7px;
height:7px;
}
.spread_s {
background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
height:7px;
}
.spread_se, .spread_sizer {
background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
width:7px;
height:7px;
}
.spread_sizer {
cursor:se-resize;
}
.spread_close {
width: 23px;
height: 23px;
background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:11px;
cursor:pointer;
z-index:1000;
}
.spread_minimize {
width: 23px;
height: 23px;
background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:55px;
cursor:pointer;
z-index:1000;
}
.spread_maximize {
width: 23px;
height: 23px;
background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
position:absolute;
top:0px;
right:33px;
cursor:pointer;
z-index:1000;
}
.spread_title {
float:left;
height:14px;
font-family: Tahoma, Arial, sans-serif;
font-size:14px;
font-weight:bold;
text-align:left;
margin-top:2px;
width:100%;
color:#E47211;
}
.spread_content {
overflow:auto;
color: #222;
font-family: Tahoma, Arial, sans-serif;
font-size: 10px;
background:#A9EA00;
}

308
public/statistics/trustie2/gitstats.css

@ -1,154 +1,154 @@
/**
* GitStats - default style
*/
body {
color: black;
background-color: #fff;
}
dt {
font-size: 12px;
font-weight: bold;
float: left;
margin-right: 1em;
margin-left: 10px;
}
dt:after {
content: ': ';
}
dd {
font-size: 11px;
display: block;
clear: left;
}
table {
border: 1px solid black;
border-collapse: collapse;
font-size: 70%;
margin-bottom: 1em;
}
table.noborders {
border: none;
}
table.noborders td {
border: none;
}
.vtable {
float: right;
clear: both;
}
table.tags td {
vertical-align: top;
}
th {
background-color: #ddf;
}
th a {
text-decoration: none;
}
tr:hover {
background-color: #ddf;
}
td {
border: 1px solid black;
padding: 0.2em;
padding-left: 0.3em;
padding-right: 0.2em;
}
/* Navigation bar; tabbed style */
.nav {
height: 2em; margin-bottom:1.2em; position:relative; overflow:hidden;margin-top: -10px;
}
.nav ul {
margin:0; position:absolute; bottom:0; padding-left:0.5em;
}
.nav li {
float:left;
list-style-type:none;
white-space:nowrap;
margin-right:0px;
background:#fff;
position:relative;
margin-bottom:5px;
}
.nav li a {
font-size: 0.8em;
text-decoration:none;
line-height:1.3em;
padding:2px 6px 2px 6px;
border: 1px solid #ccc;
border-bottom: 1px solid #bbbbbb;
background-color:#FFFFFF;
color:#999;
font-weight:bold;
border-top-left-radius:3px;
border-top-right-radius:3px;
}
.nav li a:hover {
background-color: #cacbcb;
text-decoration:none;
}
img {
border: 1px solid black;
padding: 0.5em;
background-color: white;
}
th img {
border: 0px;
padding: 0px;
background-color: #ddf;
}
h1 a, h2 a {
color: black;
text-decoration: none;
}
h1:hover a:after,
h2:hover a:after {
color: #555;
}
h1 {
font-size: x-large;
}
h2 {
background-color: #C6E9F1;
border: 1px solid #C6E9F1;
padding-left: 0.5em;
padding-right: 0.5em;
color: black;
font-size: 0.8em;
clear: both;
}
h2 a {
color: black;
}
p{
font-size: 0.7em;
}
.moreauthors {
font-size: 70%;
}
/**
* GitStats - default style
*/
body {
color: black;
background-color: #fff;
}
dt {
font-size: 12px;
font-weight: bold;
float: left;
margin-right: 1em;
margin-left: 10px;
}
dt:after {
content: ': ';
}
dd {
font-size: 11px;
display: block;
clear: left;
}
table {
border: 1px solid black;
border-collapse: collapse;
font-size: 70%;
margin-bottom: 1em;
}
table.noborders {
border: none;
}
table.noborders td {
border: none;
}
.vtable {
float: right;
clear: both;
}
table.tags td {
vertical-align: top;
}
th {
background-color: #ddf;
}
th a {
text-decoration: none;
}
tr:hover {
background-color: #ddf;
}
td {
border: 1px solid black;
padding: 0.2em;
padding-left: 0.3em;
padding-right: 0.2em;
}
/* Navigation bar; tabbed style */
.nav {
height: 2em; margin-bottom:1.2em; position:relative; overflow:hidden;margin-top: -10px;
}
.nav ul {
margin:0; position:absolute; bottom:0; padding-left:0.5em;
}
.nav li {
float:left;
list-style-type:none;
white-space:nowrap;
margin-right:0px;
background:#fff;
position:relative;
margin-bottom:5px;
}
.nav li a {
font-size: 0.8em;
text-decoration:none;
line-height:1.3em;
padding:2px 6px 2px 6px;
border: 1px solid #ccc;
border-bottom: 1px solid #bbbbbb;
background-color:#FFFFFF;
color:#999;
font-weight:bold;
border-top-left-radius:3px;
border-top-right-radius:3px;
}
.nav li a:hover {
background-color: #cacbcb;
text-decoration:none;
}
img {
border: 1px solid black;
padding: 0.5em;
background-color: white;
}
th img {
border: 0px;
padding: 0px;
background-color: #ddf;
}
h1 a, h2 a {
color: black;
text-decoration: none;
}
h1:hover a:after,
h2:hover a:after {
color: #555;
}
h1 {
font-size: x-large;
}
h2 {
background-color: #C6E9F1;
border: 1px solid #C6E9F1;
padding-left: 0.5em;
padding-right: 0.5em;
color: black;
font-size: 0.8em;
clear: both;
}
h2 a {
color: black;
}
p{
font-size: 0.7em;
}
.moreauthors {
font-size: 70%;
}

38
public/statistics/trustie2/index.html

@ -1,20 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<title>GitStats - trustie2</title>-->
<link rel="stylesheet" href="gitstats.css" type="text/css" />
<meta name="generator" content="GitStats " />
<script type="text/javascript" src="sortable.js"></script>
</head>
<body>
<h2>项目信息(Project Information)</h2>
<dl><dt>项目名(Project name)</dt><dd>trustie2</dd><dt>统计时段(Report Period)</dt><dd>2013-08-01 02:33:49 to 2013-08-23 22:41:30</dd><dt>项目活跃时段(Project Active Period)</dt><dd>2013-08-01 02:33:49 to 2013-08-09 09:24:38 (9 days)</dd>
<h2><a href="#代码文件信息(files_information_of_code)" name="代码文件信息(files_information_of_code)">代码文件信息(Files Information of Code)</a></h2>
<table class="authors sortable" id="ext"><tr><th>文件类型(File Type)</th><th>文件数(Files Number)</th><th>代码行数(Lines Number of Code)</th></tr><tr><td>.rb</td><td>677</td><td>59777</td></tr><tr><td>.erb</td><td>423</td><td>10688</td></tr><tr><td>.js</td><td>109</td><td>3891</td></tr><tr><td>.yml</td><td>77</td><td>52743</td></tr><tr><td>.css</td><td>23</td><td>5820</td></tr><tr><td>.py</td><td>1</td><td>196</td></tr><tr><td>.c</td><td>0</td><td>0</td></tr><tr><td>.html</td><td>5</td><td>334</td></tr><tr><td>.php</td><td>2</td><td>700</td></tr></table><dt>代码文件总数(Total files number of Code)</dt><dd>1317</dd><dt>代码总数(Total Lines number of Code)</dt><dd>134149</dd><dt>修改代码总数(Total Modified Lines Number of Code)</dt><dd>3197 (5961 added, 2764 removed)</dd>
<h2><a href="#作者信息(authors_information)" name="作者信息(authors_information)">作者信息(Authors Information)</a></h2>
<table class="authors sortable" id="authors"><tr><th>作者名(Author Name)</th><th>提交次数及占百分比(Commits)(%)</th><th>增加代码行数(+ lines)</th><th>删除代码行数(- lines)</th><th>首次提交日期(First commit)</th><th>最后一次提交日期(Last commit)</th><th class="unsortable">活跃年龄(Age)</th><th>活跃天数(Active days)</th><th>#提交排名(# by commits)</th></tr><tr><td>zhangyang</td><td>27 (26.73%)</td><td>653</td><td>359</td><td>2013-08-01</td><td>2013-08-07</td><td>6 days, 2:35:42</td><td>7</td><td>1</td></tr><tr><td>huangjingquan</td><td>21 (20.79%)</td><td>838</td><td>508</td><td>2013-08-01</td><td>2013-08-09</td><td>8 days, 4:34:48</td><td>8</td><td>2</td></tr><tr><td>nieguanghui</td><td>20 (19.80%)</td><td>1169</td><td>568</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 21:52:06</td><td>7</td><td>3</td></tr><tr><td>fanqiang</td><td>17 (16.83%)</td><td>2467</td><td>1595</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 20:37:38</td><td>9</td><td>4</td></tr><tr><td>william</td><td>9 (8.91%)</td><td>1614</td><td>169</td><td>2013-08-01</td><td>2013-08-08</td><td>7 days, 1:46:54</td><td>4</td><td>5</td></tr><tr><td>kaizheng</td><td>6 (5.94%)</td><td>809</td><td>68</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 20:04:01</td><td>4</td><td>6</td></tr><tr><td>wanglinchun</td><td>1 (0.99%)</td><td>7</td><td>4</td><td>2013-08-07</td><td>2013-08-07</td><td>0:00:00</td><td>1</td><td>7</td></tr></table><dt>作者总数(Authors Number)</dt><dd>7</dd><dt>提交总数(Total Commits Number)</dt><dd>101 (average 11.2 commits per active day, 11.2 per all days)</dd></dl></body>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--<title>GitStats - trustie2</title>-->
<link rel="stylesheet" href="gitstats.css" type="text/css" />
<meta name="generator" content="GitStats " />
<script type="text/javascript" src="sortable.js"></script>
</head>
<body>
<h2>项目信息(Project Information)</h2>
<dl><dt>项目名(Project name)</dt><dd>trustie2</dd><dt>统计时段(Report Period)</dt><dd>2013-08-01 02:33:49 to 2013-08-23 22:41:30</dd><dt>项目活跃时段(Project Active Period)</dt><dd>2013-08-01 02:33:49 to 2013-08-09 09:24:38 (9 days)</dd>
<h2><a href="#代码文件信息(files_information_of_code)" name="代码文件信息(files_information_of_code)">代码文件信息(Files Information of Code)</a></h2>
<table class="authors sortable" id="ext"><tr><th>文件类型(File Type)</th><th>文件数(Files Number)</th><th>代码行数(Lines Number of Code)</th></tr><tr><td>.rb</td><td>677</td><td>59777</td></tr><tr><td>.erb</td><td>423</td><td>10688</td></tr><tr><td>.js</td><td>109</td><td>3891</td></tr><tr><td>.yml</td><td>77</td><td>52743</td></tr><tr><td>.css</td><td>23</td><td>5820</td></tr><tr><td>.py</td><td>1</td><td>196</td></tr><tr><td>.c</td><td>0</td><td>0</td></tr><tr><td>.html</td><td>5</td><td>334</td></tr><tr><td>.php</td><td>2</td><td>700</td></tr></table><dt>代码文件总数(Total files number of Code)</dt><dd>1317</dd><dt>代码总数(Total Lines number of Code)</dt><dd>134149</dd><dt>修改代码总数(Total Modified Lines Number of Code)</dt><dd>3197 (5961 added, 2764 removed)</dd>
<h2><a href="#作者信息(authors_information)" name="作者信息(authors_information)">作者信息(Authors Information)</a></h2>
<table class="authors sortable" id="authors"><tr><th>作者名(Author Name)</th><th>提交次数及占百分比(Commits)(%)</th><th>增加代码行数(+ lines)</th><th>删除代码行数(- lines)</th><th>首次提交日期(First commit)</th><th>最后一次提交日期(Last commit)</th><th class="unsortable">活跃年龄(Age)</th><th>活跃天数(Active days)</th><th>#提交排名(# by commits)</th></tr><tr><td>zhangyang</td><td>27 (26.73%)</td><td>653</td><td>359</td><td>2013-08-01</td><td>2013-08-07</td><td>6 days, 2:35:42</td><td>7</td><td>1</td></tr><tr><td>huangjingquan</td><td>21 (20.79%)</td><td>838</td><td>508</td><td>2013-08-01</td><td>2013-08-09</td><td>8 days, 4:34:48</td><td>8</td><td>2</td></tr><tr><td>nieguanghui</td><td>20 (19.80%)</td><td>1169</td><td>568</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 21:52:06</td><td>7</td><td>3</td></tr><tr><td>fanqiang</td><td>17 (16.83%)</td><td>2467</td><td>1595</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 20:37:38</td><td>9</td><td>4</td></tr><tr><td>william</td><td>9 (8.91%)</td><td>1614</td><td>169</td><td>2013-08-01</td><td>2013-08-08</td><td>7 days, 1:46:54</td><td>4</td><td>5</td></tr><tr><td>kaizheng</td><td>6 (5.94%)</td><td>809</td><td>68</td><td>2013-08-01</td><td>2013-08-09</td><td>7 days, 20:04:01</td><td>4</td><td>6</td></tr><tr><td>wanglinchun</td><td>1 (0.99%)</td><td>7</td><td>4</td><td>2013-08-07</td><td>2013-08-07</td><td>0:00:00</td><td>1</td><td>7</td></tr></table><dt>作者总数(Authors Number)</dt><dd>7</dd><dt>提交总数(Total Commits Number)</dt><dd>101 (average 11.2 commits per active day, 11.2 per all days)</dd></dl></body>
</html>

648
public/statistics/trustie2/sortable.js

@ -1,324 +1,324 @@
/*
Table sorting script by Joost de Valk, check it out at http://www.joostdevalk.nl/code/sortable-table/.
Based on a script from http://www.kryogenix.org/code/browser/sorttable/.
Distributed under the MIT license: http://www.kryogenix.org/code/browser/licence.html .
Copyright (c) 1997-2007 Stuart Langridge, Joost de Valk.
Version 1.5.7
*/
/* You can change these values */
var image_path = "";
var image_up = "arrow-up.gif";
var image_down = "arrow-down.gif";
var image_none = "arrow-none.gif";
var europeandate = true;
var alternate_row_colors = true;
/* Don't change anything below this unless you know what you're doing */
addEvent(window, "load", sortables_init);
var SORT_COLUMN_INDEX;
var thead = false;
function sortables_init() {
// Find all tables with class sortable and make them sortable
if (!document.getElementsByTagName) return;
tbls = document.getElementsByTagName("table");
for (ti=0;ti<tbls.length;ti++) {
thisTbl = tbls[ti];
if (((' '+thisTbl.className+' ').indexOf("sortable") != -1) && (thisTbl.id)) {
ts_makeSortable(thisTbl);
}
}
}
function ts_makeSortable(t) {
if (t.rows && t.rows.length > 0) {
if (t.tHead && t.tHead.rows.length > 0) {
var firstRow = t.tHead.rows[t.tHead.rows.length-1];
thead = true;
} else {
var firstRow = t.rows[0];
}
}
if (!firstRow) return;
// We have a first row: assume it's the header, and make its contents clickable links
for (var i=0;i<firstRow.cells.length;i++) {
var cell = firstRow.cells[i];
var txt = ts_getInnerText(cell);
if (cell.className != "unsortable" && cell.className.indexOf("unsortable") == -1) {
cell.innerHTML = '<a href="#" class="sortheader" onclick="ts_resortTable(this, '+i+');return false;">'+txt+'<span class="sortarrow">&nbsp;&nbsp;<img src="'+ image_path + image_none + '" alt="&darr;"/></span></a>';
}
}
if (alternate_row_colors) {
alternate(t);
}
}
function ts_getInnerText(el) {
if (typeof el == "string") return el;
if (typeof el == "undefined") { return el };
if (el.innerText) return el.innerText; //Not needed but it is faster
var str = "";
var cs = el.childNodes;
var l = cs.length;
for (var i = 0; i < l; i++) {
switch (cs[i].nodeType) {
case 1: //ELEMENT_NODE
str += ts_getInnerText(cs[i]);
break;
case 3: //TEXT_NODE
str += cs[i].nodeValue;
break;
}
}
return str;
}
function ts_resortTable(lnk, clid) {
var span;
for (var ci=0;ci<lnk.childNodes.length;ci++) {
if (lnk.childNodes[ci].tagName && lnk.childNodes[ci].tagName.toLowerCase() == 'span') span = lnk.childNodes[ci];
}
var spantext = ts_getInnerText(span);
var td = lnk.parentNode;
var column = clid || td.cellIndex;
var t = getParent(td,'TABLE');
// Work out a type for the column
if (t.rows.length <= 1) return;
var itm = "";
var i = 1;
while (itm == "" && i < t.tBodies[0].rows.length) {
var itm = ts_getInnerText(t.tBodies[0].rows[i].cells[column]);
itm = trim(itm);
if (itm.substr(0,4) == "<!--" || itm.length == 0) {
itm = "";
}
i++;
}
if (itm == "") return;
sortfn = ts_sort_caseinsensitive;
if (itm.match(/^\d\d[\/\.-][a-zA-z][a-zA-Z][a-zA-Z][\/\.-]\d\d\d\d$/)) sortfn = ts_sort_date;
if (itm.match(/^\d\d[\/\.-]\d\d[\/\.-]\d\d\d{2}?$/)) sortfn = ts_sort_date;
if (itm.match(/^-?[£$€Û¢´]\d/)) sortfn = ts_sort_numeric;
// ignore stuff in () after the numbers.
if (itm.match(/^-?(\d+[,\.]?)+(E[-+][\d]+)?%?( \(.*\))?$/)) sortfn = ts_sort_numeric;
SORT_COLUMN_INDEX = column;
var firstRow = new Array();
var newRows = new Array();
for (k=0;k<t.tBodies.length;k++) {
for (i=0;i<t.tBodies[k].rows[0].length;i++) {
firstRow[i] = t.tBodies[k].rows[0][i];
}
}
for (k=0;k<t.tBodies.length;k++) {
if (!thead) {
// Skip the first row
for (j=1;j<t.tBodies[k].rows.length;j++) {
newRows[j-1] = t.tBodies[k].rows[j];
}
} else {
// Do NOT skip the first row
for (j=0;j<t.tBodies[k].rows.length;j++) {
newRows[j] = t.tBodies[k].rows[j];
}
}
}
newRows.sort(sortfn);
if (span.getAttribute("sortdir") == 'down') {
ARROW = '&nbsp;&nbsp;<img src="'+ image_path + image_down + '" alt="&darr;"/>';
newRows.reverse();
span.setAttribute('sortdir','up');
} else {
ARROW = '&nbsp;&nbsp;<img src="'+ image_path + image_up + '" alt="&uarr;"/>';
span.setAttribute('sortdir','down');
}
// We appendChild rows that already exist to the tbody, so it moves them rather than creating new ones
// don't do sortbottom rows
for (i=0; i<newRows.length; i++) {
if (!newRows[i].className || (newRows[i].className && (newRows[i].className.indexOf('sortbottom') == -1))) {
t.tBodies[0].appendChild(newRows[i]);
}
}
// do sortbottom rows only
for (i=0; i<newRows.length; i++) {
if (newRows[i].className && (newRows[i].className.indexOf('sortbottom') != -1))
t.tBodies[0].appendChild(newRows[i]);
}
// Delete any other arrows there may be showing
var allspans = document.getElementsByTagName("span");
for (var ci=0;ci<allspans.length;ci++) {
if (allspans[ci].className == 'sortarrow') {
if (getParent(allspans[ci],"table") == getParent(lnk,"table")) { // in the same table as us?
allspans[ci].innerHTML = '&nbsp;&nbsp;<img src="'+ image_path + image_none + '" alt="&darr;"/>';
}
}
}
span.innerHTML = ARROW;
alternate(t);
}
function getParent(el, pTagName) {
if (el == null) {
return null;
} else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase()) {
return el;
} else {
return getParent(el.parentNode, pTagName);
}
}
function sort_date(date) {
// y2k notes: two digit years less than 50 are treated as 20XX, greater than 50 are treated as 19XX
dt = "00000000";
if (date.length == 11) {
mtstr = date.substr(3,3);
mtstr = mtstr.toLowerCase();
switch(mtstr) {
case "jan": var mt = "01"; break;
case "feb": var mt = "02"; break;
case "mar": var mt = "03"; break;
case "apr": var mt = "04"; break;
case "may": var mt = "05"; break;
case "jun": var mt = "06"; break;
case "jul": var mt = "07"; break;
case "aug": var mt = "08"; break;
case "sep": var mt = "09"; break;
case "oct": var mt = "10"; break;
case "nov": var mt = "11"; break;
case "dec": var mt = "12"; break;
// default: var mt = "00";
}
dt = date.substr(7,4)+mt+date.substr(0,2);
return dt;
} else if (date.length == 10) {
if (europeandate == false) {
dt = date.substr(6,4)+date.substr(0,2)+date.substr(3,2);
return dt;
} else {
dt = date.substr(6,4)+date.substr(3,2)+date.substr(0,2);
return dt;
}
} else if (date.length == 8) {
yr = date.substr(6,2);
if (parseInt(yr) < 50) {
yr = '20'+yr;
} else {
yr = '19'+yr;
}
if (europeandate == true) {
dt = yr+date.substr(3,2)+date.substr(0,2);
return dt;
} else {
dt = yr+date.substr(0,2)+date.substr(3,2);
return dt;
}
}
return dt;
}
function ts_sort_date(a,b) {
dt1 = sort_date(ts_getInnerText(a.cells[SORT_COLUMN_INDEX]));
dt2 = sort_date(ts_getInnerText(b.cells[SORT_COLUMN_INDEX]));
if (dt1==dt2) {
return 0;
}
if (dt1<dt2) {
return -1;
}
return 1;
}
function ts_sort_numeric(a,b) {
var aa = ts_getInnerText(a.cells[SORT_COLUMN_INDEX]);
aa = clean_num(aa);