Changeset 11614
- Timestamp:
- 02/25/2022 06:41:30 AM (3 years ago)
- Location:
- sites/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/dotorg/trac/oembed/index.php
r11600 r11614 173 173 $remove_tags[] = 'h1'; 174 174 $remove_tags[] = 'h2'; 175 $remove_tags[] = 'div.paging'; 175 176 break; 176 177 } … … 258 259 function send() { 259 260 window.parent.postMessage( { 260 height: Math.max( document.getElementsByTagName('html')[0].offsetHeight, document.documentElement. clientHeight ),261 height: Math.max( document.getElementsByTagName('html')[0].offsetHeight, document.documentElement.offsetHeight ), 261 262 el: id 262 263 }, '*' ); … … 279 280 $doc->getElementsByTagName( 'head' )[0]->appendChild( $doc->createElement( 'style', $css ) ); 280 281 282 // Finally add a CSS class to target. 283 $body = $doc->getElementsByTagName( 'body' )[0]; 284 $body->setAttribute( 'class', $body->getAttribute( 'class' ) . ' is-oembed' ); 285 281 286 $data = $doc->saveHTML(); 282 287 -
sites/trunk/trac.wordpress.org/templates/site.html
r11612 r11614 5 5 6 6 <?python 7 scripts_version = '16 7'7 scripts_version = '168' 8 8 project_slug = req.environ['HTTP_HOST'].split(':')[0].split('.')[0] 9 9 wporg_endpoint = 'https://make.wordpress.org/' + project_slug + '/' -
sites/trunk/wordpress.org/public_html/style/trac/wp-trac.css
r11611 r11614 2094 2094 padding-left: 22px; 2095 2095 } 2096 .listing.tickets th,2097 .listing.tickets td {2096 body:not(.is-oembed) .listing.tickets th, 2097 body:not(.is-oembed) .listing.tickets td { 2098 2098 display: block; 2099 2099 } 2100 .listing.tickets thead th,2101 .listing.tickets tbody .trac-columns th {2100 body:not(.is-oembed) .listing.tickets thead th, 2101 body:not(.is-oembed) .listing.tickets tbody .trac-columns th { 2102 2102 display: inline-block; 2103 2103 } 2104 .listing.tickets tbody tr td.id::before,2105 .listing.tickets tbody tr td.ticket::before {2104 body:not(.is-oembed) .listing.tickets tbody tr td.id::before, 2105 body:not(.is-oembed) .listing.tickets tbody tr td.ticket::before { 2106 2106 content: "Ticket: "; 2107 2107 } 2108 .listing.tickets tbody tr td.summary::before {2108 body:not(.is-oembed) .listing.tickets tbody tr td.summary::before { 2109 2109 content: "Summary: "; 2110 2110 } 2111 .listing.tickets tbody tr td.status::before {2111 body:not(.is-oembed) .listing.tickets tbody tr td.status::before { 2112 2112 content: "Status: "; 2113 2113 } 2114 .listing.tickets tbody tr td.resolution::before {2114 body:not(.is-oembed) .listing.tickets tbody tr td.resolution::before { 2115 2115 content: "Resolution: "; 2116 2116 } 2117 .listing.tickets tbody tr td.owner::before {2117 body:not(.is-oembed) .listing.tickets tbody tr td.owner::before { 2118 2118 content: "Owner: "; 2119 2119 } 2120 .listing.tickets tbody tr td.type::before {2120 body:not(.is-oembed) .listing.tickets tbody tr td.type::before { 2121 2121 content: "Type: "; 2122 2122 } 2123 .listing.tickets tbody tr td.priority::before {2123 body:not(.is-oembed) .listing.tickets tbody tr td.priority::before { 2124 2124 content: "Priority: "; 2125 2125 } 2126 .listing.tickets tbody tr td.milestone::before {2126 body:not(.is-oembed) .listing.tickets tbody tr td.milestone::before { 2127 2127 content: "Milestone: "; 2128 2128 } 2129 .listing.tickets tbody tr td.component::before {2129 body:not(.is-oembed) .listing.tickets tbody tr td.component::before { 2130 2130 content: "Component: "; 2131 2131 } 2132 .listing.tickets tbody tr td.severity::before {2132 body:not(.is-oembed) .listing.tickets tbody tr td.severity::before { 2133 2133 content: "Severity: "; 2134 2134 } 2135 .listing.tickets tbody tr td.workflow::before {2135 body:not(.is-oembed) .listing.tickets tbody tr td.workflow::before { 2136 2136 content: "Workflow: "; 2137 2137 } 2138 .listing.tickets tbody tr td.date::before {2138 body:not(.is-oembed) .listing.tickets tbody tr td.date::before { 2139 2139 content: "Date: "; 2140 2140 } 2141 .listing.tickets tbody tr td.time::before {2141 body:not(.is-oembed) .listing.tickets tbody tr td.time::before { 2142 2142 content: "Created: "; 2143 2143 } 2144 .listing.tickets tbody tr td.changetime::before {2144 body:not(.is-oembed) .listing.tickets tbody tr td.changetime::before { 2145 2145 content: "Modified: "; 2146 2146 } 2147 .listing.tickets tbody tr td.version::before {2147 body:not(.is-oembed) .listing.tickets tbody tr td.version::before { 2148 2148 content: "Version: "; 2149 2149 } 2150 .listing.tickets tbody tr td.reporter::before {2150 body:not(.is-oembed) .listing.tickets tbody tr td.reporter::before { 2151 2151 content: "Reporter: "; 2152 2152 } 2153 .listing.tickets tbody tr td.Comments::before {2153 body:not(.is-oembed) .listing.tickets tbody tr td.Comments::before { 2154 2154 content: "Comments: "; 2155 2155 } 2156 .listing.tickets tbody tr td.Stars::before {2156 body:not(.is-oembed) .listing.tickets tbody tr td.Stars::before { 2157 2157 content: "Stars: "; 2158 2158 } 2159 .listing.tickets tbody tr td.keywords::before {2159 body:not(.is-oembed) .listing.tickets tbody tr td.keywords::before { 2160 2160 content: "Keywords: "; 2161 2161 } 2162 .listing.tickets tbody tr td.focuses::before {2162 body:not(.is-oembed) .listing.tickets tbody tr td.focuses::before { 2163 2163 content: "Focuses: "; 2164 2164 } 2165 .listing.tickets tbody tr td.cc::before {2165 body:not(.is-oembed) .listing.tickets tbody tr td.cc::before { 2166 2166 content: "CC: "; 2167 2167 } 2168 .listing.tickets tbody tr td:not(.Comments, .Stars)::before {2168 body:not(.is-oembed) .listing.tickets tbody tr td:not(.Comments, .Stars)::before { 2169 2169 font-weight: 600; 2170 2170 } 2171 .listing.tickets tbody tr td.Stars,2172 .listing.tickets tbody tr td.Comments {2171 body:not(.is-oembed) .listing.tickets tbody tr td.Stars, 2172 body:not(.is-oembed) .listing.tickets tbody tr td.Comments { 2173 2173 display: inline-block; 2174 2174 float: right; … … 2480 2480 } 2481 2481 } 2482 2483 /* Trac oEmbed rules */ 2484 body.is-oembed table.listing { 2485 display: block; 2486 overflow-x: auto; 2487 } 2488 body.is-oembed table.listing .summary { 2489 min-width: 40vw; 2490 }
Note: See TracChangeset
for help on using the changeset viewer.